aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2006-04-29 10:20:04 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2006-04-29 10:20:04 +0000
commit332b6ddd9efcebab3c40b5ead95ceac447f9b877 (patch)
tree946bc015ab5c8b591eba8150410478b7479b4c41 /lib
parente908294685fa16cb742c7fbb31e33008f9fe37f2 (diff)
downloadbitbake-332b6ddd9efcebab3c40b5ead95ceac447f9b877.tar.gz
fetch/__init__.py:
- Allow multiple entries in tarball stash and iterate through them
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 23d09fc6b..ac698a0d1 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -171,11 +171,11 @@ class Fetch(object):
pn = data.getVar('PN', d, True)
src_tarball_stash = None
if pn:
- src_tarball_stash = data.getVar('SRC_TARBALL_STASH_%s' % pn, d, True) or data.getVar('CVS_TARBALL_STASH_%s' % pn, d, True) or data.getVar('SRC_TARBALL_STASH', d, True) or data.getVar('CVS_TARBALL_STASH', d, True)
+ src_tarball_stash = (data.getVar('SRC_TARBALL_STASH_%s' % pn, d, True) or data.getVar('CVS_TARBALL_STASH_%s' % pn, d, True) or data.getVar('SRC_TARBALL_STASH', d, True) or data.getVar('CVS_TARBALL_STASH', d, True) or "").split()
- if src_tarball_stash:
+ for stash in src_tarball_stash:
fetchcmd = data.getVar("FETCHCOMMAND_mirror", d, True) or data.getVar("FETCHCOMMAND_wget", d, True)
- uri = src_tarball_stash + tarfn
+ uri = stash + tarfn
bb.note("fetch " + uri)
fetchcmd = fetchcmd.replace("${URI}", uri)
ret = os.system(fetchcmd)