(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):
|
if os.path.islink(root) and not has_excluded_prefix(root):
|
||||||
#yield the symlink..
|
#yield the symlink..
|
||||||
#bug 373
|
#bug 373
|
||||||
yield (root, sha1_sum(os.readlink(root)))
|
yield (root, sha1_sum(os.readlink(root), True))
|
||||||
exclude_prefix.append(remove_prefix(removePrefix, root) + "/")
|
exclude_prefix.append(remove_prefix(removePrefix, root) + "/")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -293,7 +293,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
|
|||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
d = os.path.join(root, dir)
|
d = os.path.join(root, dir)
|
||||||
if os.path.islink(d) and not has_excluded_prefix(d):
|
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) + "/")
|
exclude_prefix.append(remove_prefix(removePrefix, d) + "/")
|
||||||
|
|
||||||
#bug 340
|
#bug 340
|
||||||
@@ -309,7 +309,7 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None):
|
|||||||
continue
|
continue
|
||||||
#bug 373
|
#bug 373
|
||||||
elif os.path.islink(f):
|
elif os.path.islink(f):
|
||||||
yield (f, sha1_sum(os.readlink(f)))
|
yield (f, sha1_sum(os.readlink(f), True))
|
||||||
else:
|
else:
|
||||||
yield (f, sha1_sum(f))
|
yield (f, sha1_sum(f))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user