summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/checksum.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/checksum.py')
-rw-r--r--bitbake/lib/bb/checksum.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/checksum.py b/bitbake/lib/bb/checksum.py
index 5bc8a8fcb6..677020f497 100644
--- a/bitbake/lib/bb/checksum.py
+++ b/bitbake/lib/bb/checksum.py
@@ -74,7 +74,7 @@ class FileChecksumCache(MultiProcessCache):
74 else: 74 else:
75 dest[0][h] = source[0][h] 75 dest[0][h] = source[0][h]
76 76
77 def get_checksums(self, filelist, pn): 77 def get_checksums(self, filelist, pn, localdirsexclude):
78 """Get checksums for a list of files""" 78 """Get checksums for a list of files"""
79 79
80 def checksum_file(f): 80 def checksum_file(f):
@@ -90,7 +90,8 @@ class FileChecksumCache(MultiProcessCache):
90 if pth == "/": 90 if pth == "/":
91 bb.fatal("Refusing to checksum /") 91 bb.fatal("Refusing to checksum /")
92 dirchecksums = [] 92 dirchecksums = []
93 for root, dirs, files in os.walk(pth): 93 for root, dirs, files in os.walk(pth, topdown=True):
94 [dirs.remove(d) for d in list(dirs) if d in localdirsexclude]
94 for name in files: 95 for name in files:
95 fullpth = os.path.join(root, name) 96 fullpth = os.path.join(root, name)
96 checksum = checksum_file(fullpth) 97 checksum = checksum_file(fullpth)