From 8301eb4a70ae2d7a554a51f62603a6edff0d64dd Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Fri, 19 Aug 2005 15:40:15 +0000 Subject: [PATCH] =?UTF-8?q?=20#397=20fixed..=20art=C4=B1k=20baselayout=20i?= =?UTF-8?q?le=20ilgili=20bir=20s=C4=B1k=C4=B1nt=C4=B1m=C4=B1z=20kalmad?= =?UTF-8?q?=C4=B1=20=C3=87a=C4=9Flar'c=C4=B1=C4=9F=C4=B1m..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pisi/util.py b/pisi/util.py index 629b67db..947dc3ab 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -256,6 +256,14 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None): exclude_prefix.append(remove_prefix(removePrefix, root) + "/") continue + #bug 397 + for dir in dirs: + d = os.path.join(root, dir) + if os.path.islink(d) and not has_excluded_prefix(d): + yield (d, sha1_data(os.readlink(d))) + exclude_prefix.append(remove_prefix(removePrefix, d) + "/") + + #bug 340 if os.path.isdir(root) and not has_excluded_prefix(root): parent, r, d, f = root, '', '', '' for r, d, f in os.walk(parent, topdown=False): pass