From: Zac Medico Date: Fri, 21 Jul 2006 19:45:45 +0000 (-0000) Subject: Ignore hidden directories and files when updating config files. X-Git-Tag: v2.1.1~158 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ba008eb844b7e62aae820035dfad6077d63432a9;p=portage.git Ignore hidden directories and files when updating config files. svn path=/main/trunk/; revision=3983 --- 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: