diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-09-28 14:01:33 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-09-28 14:07:08 +0100 |
commit | 15ceaaaaf777175df8fa49f08e37b23052ca2290 (patch) | |
tree | fb1c9325adf78adbb5cb66563880455a1b788510 /bitbake | |
parent | d85dc37b736f789780e9ceefc00ed16e0db7d90a (diff) | |
download | poky-15ceaaaaf777175df8fa49f08e37b23052ca2290.tar.gz |
bitbake/fetch: fix logic to prevent fetches when the file already exists
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index e04c3df335..a787cb656b 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -263,6 +263,8 @@ def go(d, urls = None): | |||
263 | # First try fetching uri, u, from PREMIRRORS | 263 | # First try fetching uri, u, from PREMIRRORS |
264 | mirrors = [ i.split() for i in (bb.data.getVar('PREMIRRORS', d, 1) or "").split('\n') if i ] | 264 | mirrors = [ i.split() for i in (bb.data.getVar('PREMIRRORS', d, 1) or "").split('\n') if i ] |
265 | localpath = try_mirrors(d, u, mirrors, False, m.forcefetch(u, ud, d)) | 265 | localpath = try_mirrors(d, u, mirrors, False, m.forcefetch(u, ud, d)) |
266 | elif os.path.exists(ud.localfile): | ||
267 | localpath = ud.localfile | ||
266 | 268 | ||
267 | # Need to re-test forcefetch() which will return true if our copy is too old | 269 | # Need to re-test forcefetch() which will return true if our copy is too old |
268 | if m.forcefetch(u, ud, d) or not localpath: | 270 | if m.forcefetch(u, ud, d) or not localpath: |