From bb37cb7cb196922abe0c535adbbcdb37ad54dd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 12 Oct 2005 10:59:02 +0000 Subject: [PATCH] (forgotten parameters) call sha1_data where needed --- pisi/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi/util.py b/pisi/util.py index 718dd142..b819db0f 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -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))