Skip to content
Snippets Groups Projects
Commit 993a77c3 authored by Thomas Boettcher's avatar Thomas Boettcher
Browse files

just dirs at root level

parent a8f61802
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment