diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2009-11-06 16:32:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2009-11-06 16:32:32 +0000 |
commit | d58d2735287bc5e93468d5e809c73bc5ddd33cd0 (patch) | |
tree | b4969804f3779df07b076f777853829e068c4d53 | |
parent | 6baea3d6bf0aeef627b70401eb44d9538f63e6d6 (diff) | |
download | bitbake-d58d2735287bc5e93468d5e809c73bc5ddd33cd0.tar.gz |
fetch/__init__.py: Allow SRC_URI to be overridden in fetcher go() function
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
-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 7bacb2ceb..8c0d7ea64 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -128,12 +128,13 @@ def init(urls, d, setup = True): urldata_cache[fn] = urldata return urldata -def go(d): +def go(d, urls = None): """ Fetch all urls init must have previously been called """ - urls = d.getVar("SRC_URI", 1).split() + if not urls: + urls = d.getVar("SRC_URI", 1).split() urldata = init(urls, d, True) for u in urls: |