(forgotten parameters) call sha1_data where needed
This commit is contained in:
+3
-3
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user