1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-16 03:47:03 +00:00

bitbake/fetch: add try_premirror method and special case git fetcher

Add a new method, try_premirror, to the Fetch object which checks to see
whether the file needs to be fetched from a premirror.
Override this in the Git fetcher to only require a pre-mirror fetch when the
clone directory does not exist.

Fixes [BUGID 290]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock
2010-09-08 14:03:41 +01:00
parent 7b580b488c
commit 7117a4458b
2 changed files with 20 additions and 2 deletions
+6
View File
@@ -90,6 +90,12 @@ class Git(Fetch):
return True
return False
def try_premirror(self, d, ud):
if os.path.exists(ud.clonedir):
return False
return True
def go(self, loc, ud, d):
"""Fetch url"""