mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: runqueue: Simplify pointless len() usage
(Bitbake rev: 1f2bdd1b99075babe8dba91478cfc5d3501676cb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1224,7 +1224,7 @@ class RunQueue:
|
|||||||
if match is None:
|
if match is None:
|
||||||
bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h)
|
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}
|
matches = {k : v for k, v in matches.iteritems() if h not in k}
|
||||||
if len(matches):
|
if matches:
|
||||||
latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1]
|
latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1]
|
||||||
prevh = __find_md5__.search(latestmatch).group(0)
|
prevh = __find_md5__.search(latestmatch).group(0)
|
||||||
output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb)
|
output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb)
|
||||||
|
|||||||
Reference in New Issue
Block a user