aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-05-04 22:56:49 -0700
committerChris Larson <chris_larson@mentor.com>2010-05-22 19:09:23 -0700
commita5b1c0605328660de15bb8127b6f7d798c664d32 (patch)
tree10063818dd0fd58024f6c026ed0b77a03c3e3ba7 /lib/bb/fetch/__init__.py
parent084dfe47be8baab3827d3969be43282691fb7688 (diff)
downloadbitbake-a5b1c0605328660de15bb8127b6f7d798c664d32.tar.gz
fetch: Check for existence of tar file along with md5 signature
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 74606af02..085f8642d 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -232,7 +232,7 @@ def go(d, urls = None):
ud = urldata[u]
m = ud.method
if ud.localfile:
- if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5):
+ if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5) and os.path.exists(ud.localfile):
# File already present along with md5 stamp file
# Touch md5 file to show activity
try:
@@ -242,7 +242,7 @@ def go(d, urls = None):
pass
continue
lf = bb.utils.lockfile(ud.lockfile)
- if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5):
+ if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5) and os.path.exists(ud.localfile):
# If someone else fetched this before we got the lock,
# notice and don't try again
try: