From 0737552c1de18c64db8a5a52248a3e7b217f30aa Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Mon, 1 Feb 2010 16:56:16 +0000 Subject: bitbake: unify mirror support and make it independant of the fetcher This patch serves two purposes. Firstly it unifies the concept of mirrors into PREMIRRORS and MIRRORS. PREMIRRORS are tried before the SRC_URI defined in the recipe whereas MIRRORS are tried only if that fails. The tarball stash was conceptually inline with a PREMIRROR only with special handling within the wget fetcher and therefore only worked with certain fetch types. Secondly the patch removes the need for individual fetch implementations to worry about mirror handling. With this patch, the base fetch implementation will first try to use a PREMIRROR to fetch the desired object, if this fails the native fetch method for the object will be tried and if this fails will try to fetch a copy from one of the MIRRORS. Signed-off-by: Joshua Lock --- bitbake/lib/bb/fetch/hg.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'bitbake/lib/bb/fetch/hg.py') diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index 08cb61fc2..d0756382f 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py @@ -116,11 +116,6 @@ class Hg(Fetch): def go(self, loc, ud, d): """Fetch url""" - # try to use the tarball stash - if Fetch.try_mirror(d, ud.localfile): - bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists or was mirrored, skipping hg checkout." % ud.localpath) - return - bb.msg.debug(2, bb.msg.domain.Fetcher, "Fetch: checking for module directory '" + ud.moddir + "'") if os.access(os.path.join(ud.moddir, '.hg'), os.R_OK): -- cgit v1.2.3