[jhbuild] Correctly delete links when uninstalling (GNOME bug 683846)



commit b9eb8082f61aa442eb52f42ed07c1ae9665d2f1e
Author: Craig Keogh <cskeogh adam com au>
Date:   Thu Sep 13 21:47:33 2012 +0930

    Correctly delete links when uninstalling (GNOME bug 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 fd2e943..b57d062 100644
--- a/jhbuild/utils/fileutils.py
+++ b/jhbuild/utils/fileutils.py
@@ -62,7 +62,7 @@ Returns a list, where each item is a 2-tuple:
     results = []
 
     for path in reversed(sorted(file_paths)):
-        isdir = os.path.isdir(path)
+        isdir = os.path.isdir(path) and not os.path.islink(path)
         try:
             if isdir:
                 os.rmdir(path)



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