aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2009-04-17 23:14:05 +0000
committerChris Larson <clarson@kergoth.com>2009-04-17 23:14:05 +0000
commit60e36de1b7c72139933bc1760094f28a64dc6b43 (patch)
treea422fff22caddfe0c1c291e13e2c1056df89fb1a /lib/bb/fetch/__init__.py
parentc3a887302b587bc14f88e7a757c6aeddc24c79ba (diff)
downloadbitbake-60e36de1b7c72139933bc1760094f28a64dc6b43.tar.gz
bb.fetch.go: iterate over SRC_URI, not urldata.
urldata can contain urls other than just what's in SRC_URI. The urls of mirrors, premirrors, stashes, etc can end up in there as well, and we don't want bb.fetch.go to be fetching those things directly. Signed-off-by: Chris Larson <clarson@mvista.com>
Diffstat (limited to 'lib/bb/fetch/__init__.py')
-rw-r--r--lib/bb/fetch/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 63a12dd26..cdddcc948 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -133,9 +133,10 @@ def go(d):
Fetch all urls
init must have previously been called
"""
- urldata = init([], d, True)
+ urls = d.getVar("SRC_URI", 1).split()
+ urldata = init(urls, d, True)
- for u in urldata:
+ for u in urls:
ud = urldata[u]
m = ud.method
if ud.localfile: