From 733de7596c2ed78a846541b3290f01c21ff96606 Mon Sep 17 00:00:00 2001 From: Yu Ke Date: Wed, 19 Jan 2011 00:17:39 +0800 Subject: 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 --- bitbake/lib/bb/fetch2/git.py | 7 ------- 1 file changed, 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): 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) -- cgit v1.2.3