diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-19 00:12:09 +0100 |
|---|---|---|
| committer | Saul Wold <Saul.Wold@intel.com> | 2010-10-20 10:09:01 -0700 |
| commit | fc9c11de286b0cff76c190a7ed892b7a2caae42c (patch) | |
| tree | 8a7ed0938939654d7ee22a7aad33e6de3de4a537 /bitbake | |
| parent | 4ae9c0785e22c222cb7a80e6c9575f58858eac5c (diff) | |
| download | poky-fc9c11de286b0cff76c190a7ed892b7a2caae42c.tar.gz | |
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')
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 6 |
1 files changed, 5 insertions, 1 deletions
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): | |||
| 86 | return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) | 86 | return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) |
| 87 | 87 | ||
| 88 | def forcefetch(self, url, ud, d): | 88 | def forcefetch(self, url, ud, d): |
| 89 | if not self._contains_ref(ud.tag, d) or 'fullclone' in ud.parm: | 89 | if 'fullclone' in ud.parm: |
| 90 | return True | ||
| 91 | if os.path.exists(self.localpath(url, ud, d)): | ||
| 92 | return False | ||
| 93 | if not self._contains_ref(ud.tag, d): | ||
| 90 | return True | 94 | return True |
| 91 | return False | 95 | return False |
| 92 | 96 | ||
