exclude_prefix is a list. And code should check for all items in it, not just one and return...

Fixes: #514
This commit is contained in:
Barış Metin
2005-10-01 23:24:37 +00:00
parent 1329752173
commit bfbcc61e23
-2
View File
@@ -247,8 +247,6 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
for p in exclude_prefix:
if tempfnam.startswith(p):
return 1
else:
return 0
return 0
for root, dirs, files in os.walk(top, topdown=False):