[entropy.core] SystemSettings: really exclude "README" and ".keep" files from *.d/ dirs

This commit is contained in:
Fabio Erculiani
2011-10-27 14:39:47 +02:00
parent 6c16f902fd
commit e256c8ab10
+2 -1
View File
@@ -359,7 +359,8 @@ class SystemSettings(Singleton, EntropyPluginStore):
continue
conf_files = [x for x in conf_files if \
os.path.isfile(x) and os.access(x, os.R_OK) \
and (not x.startswith(".keep")) and x != "README"]
and not os.path.basename(x).startswith(".keep") \
and os.path.basename(x) != "README"]
# ignore files starting with _
skipped_conf_files = [x for x in conf_files if \
os.path.basename(x).startswith("_")]