diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-18 22:37:01 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-18 22:37:01 +0000 |
commit | 97a47d30b9e12e494a3da59d7359eb930230e4c2 (patch) | |
tree | 80982cf820875445a66b5f366764d277b231fe10 /lib/bb | |
parent | 6409874a74c7f258d30dbc453649a1ea5c4595d0 (diff) | |
download | bitbake-97a47d30b9e12e494a3da59d7359eb930230e4c2.tar.gz |
tbake/lib/bb/fetch.py:
Stop sf.net from bull?#*... us. We will fail when we wanted to
download a file and got something with a different name.
This should solve sf.net related problems as we go immediately to
the next mirror and it should work for all other packages as well.
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/fetch.py | 7 |
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: |