(forgotten parameters) call sha1_data where needed

This commit is contained in:
Barış Metin
2005-10-12 10:59:02 +00:00
parent 6262939888
commit bb37cb7cb1
+3 -3
View File
@@ -285,7 +285,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
if os.path.islink(root) and not has_excluded_prefix(root):
#yield the symlink..
#bug 373
yield (root, sha1_sum(os.readlink(root)))
yield (root, sha1_sum(os.readlink(root), True))
exclude_prefix.append(remove_prefix(removePrefix, root) + "/")
continue
@@ -293,7 +293,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
for dir in dirs:
d = os.path.join(root, dir)
if os.path.islink(d) and not has_excluded_prefix(d):
yield (d, sha1_sum(os.readlink(d)))
yield (d, sha1_sum(os.readlink(d), True))
exclude_prefix.append(remove_prefix(removePrefix, d) + "/")
#bug 340
@@ -309,7 +309,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
continue
#bug 373
elif os.path.islink(f):
yield (f, sha1_sum(os.readlink(f)))
yield (f, sha1_sum(os.readlink(f), True))
else:
yield (f, sha1_sum(f))