Bug #173284 - Update config update counting code in chk_updated_cfg_files()
authorZac Medico <zmedico@gentoo.org>
Sat, 15 Nov 2008 06:39:38 +0000 (06:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 Nov 2008 06:39:38 +0000 (06:39 -0000)
so hidden directories are ignored. (trunk r11933)

svn path=/main/branches/2.1.6/; revision=11934

pym/_emerge/__init__.py

index 6518b7583bb36a7ee1f3e581630c0243617dcbe4..8cd7d83e1533f90ae7f136b8770e361cd7a7fe4f 100644 (file)
@@ -11125,11 +11125,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))