diff options
author | Michał Górny <gentoo@mgorny.alt.pl> | 2010-09-02 20:31:12 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-02 11:34:56 -0700 |
commit | 5cd2cfa9066378796ef186e5ebaefb8e39662c1c (patch) | |
tree | fde99d507907c526fafea26bf7246af6d50c5f32 | |
parent | f440664c7e09360bd009d434e0ee83635dde932e (diff) | |
download | portage-5cd2cfa9066378796ef186e5ebaefb8e39662c1c.tar.gz portage-5cd2cfa9066378796ef186e5ebaefb8e39662c1c.tar.bz2 portage-5cd2cfa9066378796ef186e5ebaefb8e39662c1c.zip |
Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles).
-rw-r--r-- | pym/portage/_sets/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(): |