]> code.ossystems Code Review - openembedded-core.git/commitdiff
bb.fetch2: remove the obsolate Fetch.try_mirrors referrence
authorYu Ke <ke.yu@intel.com>
Tue, 18 Jan 2011 16:17:39 +0000 (00:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jan 2011 12:25:47 +0000 (12:25 +0000)
Fetch.try_mirrors is no longer exists, so the code is obsolate

Signed-off-by: Yu Ke <ke.yu@intel.com>
bitbake/lib/bb/fetch2/git.py

index d47191e57fc9f0671ca0695ef237d3302b116fb9..d818c1e6f058336ffad1bb575e277b8f3086d9d0 100644 (file)
@@ -116,13 +116,6 @@ class Git(Fetch):
 
         repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball)
 
-        # If we have no existing clone and no mirror tarball, try and obtain one
-        if not os.path.exists(ud.clonedir) and not os.path.exists(repofile):
-            try:
-                Fetch.try_mirrors(ud.mirrortarball)
-            except:
-                pass
-
         # If the checkout doesn't exist and the mirror tarball does, extract it
         if not os.path.exists(ud.clonedir) and os.path.exists(repofile):
             bb.mkdirhier(ud.clonedir)