diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 21:47:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 21:47:27 +0000 |
commit | 1f2bdd1b99075babe8dba91478cfc5d3501676cb (patch) | |
tree | 01851f946bb2a6faac88e69cae3a961d89d51111 /lib/bb/runqueue.py | |
parent | a8c9df86b96e27dc49028c2da42034d13988960c (diff) | |
download | bitbake-contrib-1f2bdd1b99075babe8dba91478cfc5d3501676cb.tar.gz |
runqueue: Simplify pointless len() usage
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index bf2dc5494..0475ee217 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1224,7 +1224,7 @@ 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} - if len(matches): + if 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) |