diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-20 21:36:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-21 15:13:38 +0000 |
commit | 1dbf400c662354b7826b2b97ee2e3e6d11af9fd2 (patch) | |
tree | 2914cfdcbd1bb86a6aaeac7887a3116935a93b14 /lib/bb/runqueue.py | |
parent | 300cba2e1a720dba4b83b0c76208ea93c608c1de (diff) | |
download | bitbake-contrib-1dbf400c662354b7826b2b97ee2e3e6d11af9fd2.tar.gz |
runqueue: Only attempt to print closest matching task if there is a match
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 457723603..bf2dc5494 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1224,12 +1224,11 @@ class RunQueue: if match is None: bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) matches = {k : v for k, v in matches.iteritems() if h not in k} - latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] - prevh = __find_md5__.search(latestmatch).group(0) - output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb) - bb.plain("\nTask %s:%s couldn't be used from the cache because:\n We need hash %s, closest matching task was %s\n " % (pn, taskname, h, prevh) + '\n '.join(output)) - - + if len(matches): + latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] + prevh = __find_md5__.search(latestmatch).group(0) + output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb) + bb.plain("\nTask %s:%s couldn't be used from the cache because:\n We need hash %s, closest matching task was %s\n " % (pn, taskname, h, prevh) + '\n '.join(output)) class RunQueueExecute: |