[sysadmin-bin: 143/168] Ignore symbolic links



commit 168a106bb7e0e3ee35af4dea3c3b6c4e6d9b10f2
Author: Olav Vitters <olav vitters nl>
Date:   Wed Sep 1 22:08:26 2010 +0200

    Ignore symbolic links
    
    Symbolic links have been created to work around a bug in git. We
    should never have symbolic links, so just ignore them.
    See https://bugzilla.gnome.org/show_bug.cgi?id=626836

 build-repo-list |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build-repo-list b/build-repo-list
index 5ced327..a7fba2c 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):
+        if not os.path.isdir(path) and not os.path.islink(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]