aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-07 21:11:44 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-07 21:11:44 +0000
commit7bab46cb15d81316441db05c078ca01a30230ceb (patch)
tree15d496a5b6690f2af37f38f8e7ef20afab2d0d84 /bin/emerge
parentOnly echo PORTAGE_LOG_FILE if it's actually set (may not be if sesandbox is e... (diff)
downloadportage-7bab46cb15d81316441db05c078ca01a30230ceb.tar.gz
portage-7bab46cb15d81316441db05c078ca01a30230ceb.tar.bz2
portage-7bab46cb15d81316441db05c078ca01a30230ceb.zip
For bug #165780, make config-protect code consistently ignore '.*~' and '.*.bak'.
svn path=/main/trunk/; revision=5914
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 60d5d6bd3..952f83397 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3610,7 +3610,8 @@ def chk_updated_cfg_files(target_root, config_protect):
else:
mycommand = "cd '%s'; find . -maxdepth 1 -iname '._cfg????_%s'" % \
os.path.split(x.rstrip(os.path.sep))
- a = commands.getstatusoutput(mycommand)
+ a = commands.getstatusoutput(mycommand + \
+ " ! -iname '.*~' ! -iname '.*.bak'")
if a[0] != 0:
print >> sys.stderr, " " + bad("*")+ " error scanning '%s'" % x
else: