diff options
author | Jacob Kroon <jacob.kroon@mikrodidakt.se> | 2014-04-26 16:32:18 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-27 01:27:42 +0100 |
commit | 6dfb33fd7204e09815bde7ba5bf21941a73fe965 (patch) | |
tree | 4caf8f4b0f1f7d2c2a695d8bec0c00e8b7f862a2 /lib/bb/fetch2/__init__.py | |
parent | 0a26abaf3a1e34d556c9375068dd17c879568d0f (diff) | |
download | openembedded-core-contrib-6dfb33fd7204e09815bde7ba5bf21941a73fe965.tar.gz |
fetch2: Cleanup file checksum generation
Cleanup the fix done in f9416e76e272ba3249abff099f6f3a47fe82e03e.
Instead of adding continue statements we can just move the last
statements into the final else-clause.
Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 5a03a0e46e..bc4e8fd56b 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -985,15 +985,12 @@ def get_file_checksums(filelist, pn): checksum = checksum_file(f) if checksum: checksums.append((f, checksum)) - continue elif os.path.isdir(pth): checksums.extend(checksum_dir(pth)) - continue else: checksum = checksum_file(pth) - - if checksum: - checksums.append((pth, checksum)) + if checksum: + checksums.append((pth, checksum)) checksums.sort(key=operator.itemgetter(1)) return checksums |