[sysadmin-bin: 144/168] Fix the symlink fix



commit defe126926367623881c829c73d39341b60e3e87
Author: Olav Vitters <olav vitters nl>
Date:   Wed Sep 1 22:12:30 2010 +0200

    Fix the symlink fix

 build-repo-list |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build-repo-list b/build-repo-list
index a7fba2c..9961609 100755
--- a/build-repo-list
+++ b/build-repo-list
@@ -71,7 +71,7 @@ def iter_repos (paths, repo_func, include_pending=True):
             path, force_section = p
         else:
             path, force_section = p, None
-        if not os.path.isdir(path) and not os.path.islink(path):
+        if os.path.islink(path) or not os.path.isdir(path):
             continue
         for repo in os.listdir(path):
             repopath = os.path.join (path, repo)



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