summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-11-13 20:10:53 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-13 20:10:53 +0800
commit89929e1f283c8508c505c9731ad933880abf22a1 (patch)
treecfc6563a9b52982cdaa3f778d9fdfa5afc5df4eb /bitbake/lib/bb/fetch
parentcaa7fe2284498560157e2baae918101e561be861 (diff)
downloadpoky-89929e1f283c8508c505c9731ad933880abf22a1.tar.gz
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/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 6c2cc73fb5..50955f16f1 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -285,14 +285,17 @@ def go(d, urls = None):
285 285
286 bb.utils.unlockfile(lf) 286 bb.utils.unlockfile(lf)
287 287
288def checkstatus(d): 288def checkstatus(d, urls = None):
289 """ 289 """
290 Check all urls exist upstream 290 Check all urls exist upstream
291 init must have previously been called 291 init must have previously been called
292 """ 292 """
293 urldata = init([], d, True) 293 urldata = init([], d, True)
294 294
295 for u in urldata: 295 if not urls:
296 urls = urldata
297
298 for u in urls:
296 ud = urldata[u] 299 ud = urldata[u]
297 m = ud.method 300 m = ud.method
298 bb.msg.debug(1, bb.msg.domain.Fetcher, "Testing URL %s" % u) 301 bb.msg.debug(1, bb.msg.domain.Fetcher, "Testing URL %s" % u)