diff options
author | Chris Larson <clarson@kergoth.com> | 2009-04-17 23:13:21 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2009-04-17 23:13:21 +0000 |
commit | 710159a5fe1c664db2111b6d66fef5be1173a181 (patch) | |
tree | 3a0a6e95a2679ebd91bcc5021f58f54a16c646ff | |
parent | cfe577c9963153a2c2e6586758caa15127dff38b (diff) | |
download | bitbake-710159a5fe1c664db2111b6d66fef5be1173a181.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>
-rw-r--r-- | lib/bb/fetch/__init__.py | 5 |
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: |