]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/fetch: Allow checking of a single url at a time (massive sstate speed improve...
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 13 Nov 2010 12:10:53 +0000 (20:10 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 13 Nov 2010 12:10:53 +0000 (20:10 +0800)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/fetch/__init__.py
meta/classes/sstate.bbclass

index 6c2cc73fb57a2a379853d9dc7ab5774edb7b2ebc..50955f16f187c4886885777f11cb451cce4ff779 100644 (file)
@@ -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)
index 99fc63215a99aa57da79c29ed7fbb04a4a33efb4..eb003fcffdbe12c4847d3493b6b16559c65a1824 100644 (file)
@@ -415,7 +415,7 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
 
             try:
                 bb.fetch.init(srcuri.split(), localdata)
-                bb.fetch.checkstatus(localdata)
+                bb.fetch.checkstatus(localdata, srcuri.split())
                 ret.append(task)
             except:
                 pass