[jhbuild] Do not walk into links when accumulating list of installed files



commit 2e97a3c1c2444c8299aefc55677c64d0b3f76520
Author: FrÃdÃric PÃters <fpeters 0d be>
Date:   Wed Sep 12 08:40:03 2012 +0200

    Do not walk into links when accumulating list of installed files
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683846

 jhbuild/utils/fileutils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/fileutils.py b/jhbuild/utils/fileutils.py
index 1af5724..fd2e943 100644
--- a/jhbuild/utils/fileutils.py
+++ b/jhbuild/utils/fileutils.py
@@ -27,7 +27,7 @@ def _accumulate_dirtree_contents_recurse(path, contents):
     names = os.listdir(path)
     for name in names:
         subpath = os.path.join(path, name)
-        if os.path.isdir(subpath):
+        if os.path.isdir(subpath) and not os.path.islink(subpath):
             previous_len = len(contents)
             _accumulate_dirtree_contents_recurse(subpath, contents)
             new_len = len(contents)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]