Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles).
authorMichał Górny <gentoo@mgorny.alt.pl>
Thu, 2 Sep 2010 18:31:12 +0000 (20:31 +0200)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 18:34:56 +0000 (11:34 -0700)
pym/portage/_sets/__init__.py

index 44a45382970e80935083fdabef15ecee6543cf73..e2db3eea43a4049f13385128bf39552227aeed27 100644 (file)
@@ -231,7 +231,8 @@ def load_default_config(settings, trees):
        def _getfiles():
                for path, dirs, files in os.walk(os.path.join(global_config_path, "sets")):
                        for f in files:
-                               yield os.path.join(path, f)
+                               if not f.startswith('.'):
+                                       yield os.path.join(path, f)
 
                dbapi = trees["porttree"].dbapi
                for repo in dbapi.getRepositories():