summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/checksum.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/checksum.py b/bitbake/lib/bb/checksum.py
index be4ab68915..84289208f4 100644
--- a/bitbake/lib/bb/checksum.py
+++ b/bitbake/lib/bb/checksum.py
@@ -120,13 +120,15 @@ class FileChecksumCache(MultiProcessCache):
120 checksums.extend(checksum_dir(f)) 120 checksums.extend(checksum_dir(f))
121 else: 121 else:
122 checksum = checksum_file(f) 122 checksum = checksum_file(f)
123 checksums.append((f, checksum)) 123 if checksum:
124 checksums.append((f, checksum))
124 elif os.path.isdir(pth): 125 elif os.path.isdir(pth):
125 if not os.path.islink(pth): 126 if not os.path.islink(pth):
126 checksums.extend(checksum_dir(pth)) 127 checksums.extend(checksum_dir(pth))
127 else: 128 else:
128 checksum = checksum_file(pth) 129 checksum = checksum_file(pth)
129 checksums.append((pth, checksum)) 130 if checksum:
131 checksums.append((pth, checksum))
130 132
131 checksums.sort(key=operator.itemgetter(1)) 133 checksums.sort(key=operator.itemgetter(1))
132 return checksums 134 return checksums