summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/sets/files.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py
index c9e71a332..8abb3481b 100644
--- a/pym/portage/sets/files.py
+++ b/pym/portage/sets/files.py
@@ -125,7 +125,12 @@ class StaticFileSet(EditablePackageSet):
if os.path.isdir(directory):
directory = normalize_path(directory)
for parent, dirs, files in os.walk(directory):
+ for d in dirs[:]:
+ if d[:1] == '.':
+ dirs.remove(d)
for filename in files:
+ if filename[:1] == '.':
+ continue
if filename.endswith(".metadata"):
continue
filename = os.path.join(parent,