diff options
-rw-r--r-- | bitbake/lib/bb/checksum.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/checksum.py b/bitbake/lib/bb/checksum.py index 2ec964d73b..44cb4acebb 100644 --- a/bitbake/lib/bb/checksum.py +++ b/bitbake/lib/bb/checksum.py | |||
@@ -127,13 +127,15 @@ class FileChecksumCache(MultiProcessCache): | |||
127 | checksums.extend(checksum_dir(f)) | 127 | checksums.extend(checksum_dir(f)) |
128 | else: | 128 | else: |
129 | checksum = checksum_file(f) | 129 | checksum = checksum_file(f) |
130 | checksums.append((f, checksum)) | 130 | if checksum: |
131 | checksums.append((f, checksum)) | ||
131 | elif os.path.isdir(pth): | 132 | elif os.path.isdir(pth): |
132 | if not os.path.islink(pth): | 133 | if not os.path.islink(pth): |
133 | checksums.extend(checksum_dir(pth)) | 134 | checksums.extend(checksum_dir(pth)) |
134 | else: | 135 | else: |
135 | checksum = checksum_file(pth) | 136 | checksum = checksum_file(pth) |
136 | checksums.append((pth, checksum)) | 137 | if checksum: |
138 | checksums.append((pth, checksum)) | ||
137 | 139 | ||
138 | checksums.sort(key=operator.itemgetter(1)) | 140 | checksums.sort(key=operator.itemgetter(1)) |
139 | return checksums | 141 | return checksums |