From 1077021f7010388e889d85630b13c4c7901d7718 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 19 Oct 2010 00:12:09 +0100 Subject: bitbake/fetch/git.py: Fix git fetcher to correctly use mirror tarballs Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/git.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake') 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 -- cgit 1.2.3-korg