diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-13 20:10:53 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-11-13 20:10:53 +0800 |
commit | 89929e1f283c8508c505c9731ad933880abf22a1 (patch) | |
tree | cfc6563a9b52982cdaa3f778d9fdfa5afc5df4eb /bitbake | |
parent | caa7fe2284498560157e2baae918101e561be861 (diff) | |
download | openembedded-core-89929e1f283c8508c505c9731ad933880abf22a1.tar.gz openembedded-core-89929e1f283c8508c505c9731ad933880abf22a1.tar.bz2 openembedded-core-89929e1f283c8508c505c9731ad933880abf22a1.tar.xz openembedded-core-89929e1f283c8508c505c9731ad933880abf22a1.zip |
bitbake/fetch: Allow checking of a single url at a time (massive sstate speed improvement)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 6c2cc73fb..50955f16f 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -285,14 +285,17 @@ def go(d, urls = None): bb.utils.unlockfile(lf) -def checkstatus(d): +def checkstatus(d, urls = None): """ Check all urls exist upstream init must have previously been called """ urldata = init([], d, True) - for u in urldata: + if not urls: + urls = urldata + + for u in urls: ud = urldata[u] m = ud.method bb.msg.debug(1, bb.msg.domain.Fetcher, "Testing URL %s" % u) |