diff options
| -rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 7 | ||||
| -rw-r--r-- | meta/classes/sstate.bbclass | 2 |
2 files changed, 6 insertions, 3 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 | ||
| 288 | def checkstatus(d): | 288 | def 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) |
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 99fc63215a..eb003fcffd 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
| @@ -415,7 +415,7 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d): | |||
| 415 | 415 | ||
| 416 | try: | 416 | try: |
| 417 | bb.fetch.init(srcuri.split(), localdata) | 417 | bb.fetch.init(srcuri.split(), localdata) |
| 418 | bb.fetch.checkstatus(localdata) | 418 | bb.fetch.checkstatus(localdata, srcuri.split()) |
| 419 | ret.append(task) | 419 | ret.append(task) |
| 420 | except: | 420 | except: |
| 421 | pass | 421 | pass |
