From 5cd2cfa9066378796ef186e5ebaefb8e39662c1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 2 Sep 2010 20:31:12 +0200 Subject: [PATCH] Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles). --- pym/portage/_sets/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(): -- 2.26.2