From: Michał Górny Date: Thu, 2 Sep 2010 18:31:12 +0000 (+0200) Subject: Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles). X-Git-Tag: v2.2_rc74~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5cd2cfa9066378796ef186e5ebaefb8e39662c1c;p=portage.git Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles). --- diff --git a/pym/portage/_sets/__init__.py b/pym/portage/_sets/__init__.py index 44a453829..e2db3eea4 100644 --- a/pym/portage/_sets/__init__.py +++ b/pym/portage/_sets/__init__.py @@ -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():