diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-19 00:17:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:25:47 +0000 |
commit | 733de7596c2ed78a846541b3290f01c21ff96606 (patch) | |
tree | 5087bbe30d7e9ab1e4049c6e7ebb8ab2e9aa4659 /bitbake | |
parent | ef918a72de97fd2189e1c8487e371d13e18088fd (diff) | |
download | poky-733de7596c2ed78a846541b3290f01c21ff96606.tar.gz |
bb.fetch2: remove the obsolate Fetch.try_mirrors referrence
Fetch.try_mirrors is no longer exists, so the code is obsolate
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index d47191e57f..d818c1e6f0 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -116,13 +116,6 @@ class Git(Fetch): | |||
116 | 116 | ||
117 | repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball) | 117 | repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball) |
118 | 118 | ||
119 | # If we have no existing clone and no mirror tarball, try and obtain one | ||
120 | if not os.path.exists(ud.clonedir) and not os.path.exists(repofile): | ||
121 | try: | ||
122 | Fetch.try_mirrors(ud.mirrortarball) | ||
123 | except: | ||
124 | pass | ||
125 | |||
126 | # If the checkout doesn't exist and the mirror tarball does, extract it | 119 | # If the checkout doesn't exist and the mirror tarball does, extract it |
127 | if not os.path.exists(ud.clonedir) and os.path.exists(repofile): | 120 | if not os.path.exists(ud.clonedir) and os.path.exists(repofile): |
128 | bb.mkdirhier(ud.clonedir) | 121 | bb.mkdirhier(ud.clonedir) |