bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-10-19 00:12:09 +01:00
parent ef670167cd
commit 1077021f70
1 changed files with 5 additions and 1 deletions

View File

@ -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