summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/fetch.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/fetch.py b/lib/bb/fetch.py
index ee5c40ba6..8567fbfd8 100644
--- a/lib/bb/fetch.py
+++ b/lib/bb/fetch.py
@@ -183,6 +183,13 @@ class Wget(Fetch):
if ret != 0:
return False
+ # check if sourceforge did send us to the mirror page
+ dl_dir = data.getVar("DL_DIR", d, True)
+ if not os.path.exists(dl):
+ os.system("rm %s*" % dl) # FIXME shell quote it
+ bb.debug(2,"sourceforge.net send us to the mirror on %s" % basename)
+ return False
+
# supposedly complete.. write out md5sum
if bb.which(data.getVar('PATH', d), 'md5sum'):
try: