diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-21 19:45:45 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-21 19:45:45 +0000 |
commit | ba008eb844b7e62aae820035dfad6077d63432a9 (patch) | |
tree | deba113269a516caaf959801983dadf13eeb99ec | |
parent | ef27d4659826bd29b936cf6bba640bcef4296a28 (diff) | |
download | portage-ba008eb844b7e62aae820035dfad6077d63432a9.tar.gz portage-ba008eb844b7e62aae820035dfad6077d63432a9.tar.bz2 portage-ba008eb844b7e62aae820035dfad6077d63432a9.zip |
Ignore hidden directories and files when updating config files.
svn path=/main/trunk/; revision=3983
-rw-r--r-- | pym/portage_update.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage_update.py b/pym/portage_update.py index ff09048b1..2d61e6a75 100644 --- a/pym/portage_update.py +++ b/pym/portage_update.py @@ -141,7 +141,12 @@ def update_config_files(config_root, protect, protect_mask, update_iter): config_file = os.path.join(abs_user_config, x) if os.path.isdir(config_file): for parent, dirs, files in os.walk(config_file): + for y in dirs: + if y.startswith("."): + dirs.remove(y) for y in files: + if y.startswith("."): + continue recursivefiles.append( os.path.join(parent, y)[len(abs_user_config) + 1:]) else: |