summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-19 00:12:09 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-10-19 00:19:34 +0100
commit1077021f7010388e889d85630b13c4c7901d7718 (patch)
tree2bd6b05071a590b6335b1100d67914a689c0e1ab /bitbake/lib/bb/fetch
parentef670167cdf9e31588932a27b22974c908a54dd7 (diff)
downloadopenembedded-core-1077021f7010388e889d85630b13c4c7901d7718.tar.gz
openembedded-core-1077021f7010388e889d85630b13c4c7901d7718.tar.bz2
openembedded-core-1077021f7010388e889d85630b13c4c7901d7718.tar.xz
openembedded-core-1077021f7010388e889d85630b13c4c7901d7718.zip
bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/git.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 58ffdd1ec..449f1e4db 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