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-28 00:52:57 +0000 |
commit | 30bfec03e2c84e74336760c396df1519affe3669 (patch) | |
tree | 20de86ad36e01065e51b6742b901ed47b192a520 /bitbake/lib/bb/runqueue.py | |
parent | 9a46332aa0a433f5713d750f225a0361879a5339 (diff) | |
download | poky-30bfec03e2c84e74336760c396df1519affe3669.tar.gz |
bitbake: runqueue: Simplify pointless len() usage
(Bitbake rev: 1f2bdd1b99075babe8dba91478cfc5d3501676cb)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index bf2dc5494d..0475ee2177 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1224,7 +1224,7 @@ class RunQueue: | |||
1224 | if match is None: | 1224 | if match is None: |
1225 | bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) | 1225 | bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) |
1226 | matches = {k : v for k, v in matches.iteritems() if h not in k} | 1226 | matches = {k : v for k, v in matches.iteritems() if h not in k} |
1227 | if len(matches): | 1227 | if matches: |
1228 | latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] | 1228 | latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] |
1229 | prevh = __find_md5__.search(latestmatch).group(0) | 1229 | prevh = __find_md5__.search(latestmatch).group(0) |
1230 | output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb) | 1230 | output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb) |