summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-15 06:38:17 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-15 06:38:17 +0000
commita3f5568560937aeb62ca2de2ecba2106f2e7b70a (patch)
tree8d4b40225422005815fca594668e069a44b11f3e
parented78fb2b958a012567de3aaea2b9bbb2ad4b20ed (diff)
downloadportage-a3f5568560937aeb62ca2de2ecba2106f2e7b70a.tar.gz
portage-a3f5568560937aeb62ca2de2ecba2106f2e7b70a.tar.bz2
portage-a3f5568560937aeb62ca2de2ecba2106f2e7b70a.zip
Bug #173284 - Update config update counting code in chk_updated_cfg_files()
so hidden directories are ignored. svn path=/main/trunk/; revision=11933
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 14a63a492..e1fe8f071 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -11291,11 +11291,11 @@ def chk_updated_cfg_files(target_root, config_protect):
except OSError:
pass
if stat.S_ISDIR(mymode):
- mycommand = "find '%s' -iname '._cfg????_*'" % x
+ mycommand = "find '%s' -name '.*' -type d -prune -o -name '._cfg????_*'" % x
else:
- mycommand = "find '%s' -maxdepth 1 -iname '._cfg????_%s'" % \
+ mycommand = "find '%s' -maxdepth 1 -name '._cfg????_%s'" % \
os.path.split(x.rstrip(os.path.sep))
- mycommand += " ! -iname '.*~' ! -iname '.*.bak' -print0"
+ mycommand += " ! -name '.*~' ! -iname '.*.bak' -print0"
a = commands.getstatusoutput(mycommand)
if a[0] != 0:
sys.stderr.write(" %s error scanning '%s': " % (bad("*"), x))