projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef27d46
)
Ignore hidden directories and files when updating config files.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 21 Jul 2006 19:45:45 +0000
(19:45 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 21 Jul 2006 19:45:45 +0000
(19:45 -0000)
svn path=/main/trunk/; revision=3983
pym/portage_update.py
patch
|
blob
|
history
diff --git
a/pym/portage_update.py
b/pym/portage_update.py
index ff09048b13f6adc1d8b787d1b98100ac06185178..2d61e6a75706c3a94178b7228616f0e19a4b802e 100644
(file)
--- 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: