From: Richard Purdie Date: Mon, 18 Oct 2010 23:12:09 +0000 (+0100) Subject: bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs X-Git-Tag: 2011-1~4216 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1077021f7010388e889d85630b13c4c7901d7718;p=openembedded-core.git bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 58ffdd1ec1..449f1e4dba 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py @@ -86,7 +86,11 @@ class Git(Fetch): return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) def forcefetch(self, url, ud, d): - if not self._contains_ref(ud.tag, d) or 'fullclone' in ud.parm: + if 'fullclone' in ud.parm: + return True + if os.path.exists(self.localpath(url, ud, d)): + return False + if not self._contains_ref(ud.tag, d): return True return False