diff --git a/makelinks.py b/makelinks.py index 13be05230084e3fd8db2620d1017d4428c79ea25..b7614c6738dc9b16a883c49322d529166ca05c08 100755 --- a/makelinks.py +++ b/makelinks.py @@ -28,7 +28,7 @@ def filenamefilter(dirname): # filter unlinkable files # separate dirs and files dirlist = os.listdir(dirname) - l = [f for f in dirlist if f not in [".git", ".gitignore", os.path.basename(__file__)]] + l = [f for f in dirlist if os.path.isdir(f) and f not in [".git"]] hostbased = [f.group(1) for f in map(lambda x: re.match("^(.+)--.+$", x), l) if f] if hostbased: regex = "^(%s)(--.+)?$" % "|".join(hostbased)