summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-28 12:53:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-28 12:53:31 +0100
commit0a94e568152de550dedc8135a766beb18bf064ab (patch)
tree730bf7f9b2ee7ec914ac10d4bc467d76ab624e1d /lib/bb/fetch2/__init__.py
parent7d3545a66863ad7183a7650b2af57eee091c45ae (diff)
downloadopenembedded-core-contrib-0a94e568152de550dedc8135a766beb18bf064ab.tar.gz
Revert "fetch2: Cleanup file checksum generation"
This reverts commit 6dfb33fd7204e09815bde7ba5bf21941a73fe965. It causes an unindeded change in behaviour.
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r--lib/bb/fetch2/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index bc4e8fd56b..5a03a0e46e 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -985,12 +985,15 @@ 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