diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-05-04 22:56:49 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:34 +0100 |
commit | f7e6c5ad2b89ee2733dfc97b69d6f968bebac824 (patch) | |
tree | dadfdb7729b1003873a6412594a4669a1bc59aea /bitbake/lib | |
parent | 50006b49fce055a2e361f70620c6128f477adca9 (diff) | |
download | poky-f7e6c5ad2b89ee2733dfc97b69d6f968bebac824.tar.gz |
fetch: Check for existence of tar file along with md5 signature
(Bitbake rev: a5b1c0605328660de15bb8127b6f7d798c664d32)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index f52b0acfc7..ef33e6da41 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -232,7 +232,7 @@ def go(d, urls = None): | |||
232 | ud = urldata[u] | 232 | ud = urldata[u] |
233 | m = ud.method | 233 | m = ud.method |
234 | if ud.localfile: | 234 | if ud.localfile: |
235 | if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): | 235 | if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5) and os.path.exists(ud.localfile): |
236 | # File already present along with md5 stamp file | 236 | # File already present along with md5 stamp file |
237 | # Touch md5 file to show activity | 237 | # Touch md5 file to show activity |
238 | try: | 238 | try: |
@@ -242,7 +242,7 @@ def go(d, urls = None): | |||
242 | pass | 242 | pass |
243 | continue | 243 | continue |
244 | lf = bb.utils.lockfile(ud.lockfile) | 244 | lf = bb.utils.lockfile(ud.lockfile) |
245 | if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): | 245 | if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5) and os.path.exists(ud.localfile): |
246 | # If someone else fetched this before we got the lock, | 246 | # If someone else fetched this before we got the lock, |
247 | # notice and don't try again | 247 | # notice and don't try again |
248 | try: | 248 | try: |