From 7bab46cb15d81316441db05c078ca01a30230ceb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 7 Feb 2007 21:11:44 +0000 Subject: [PATCH] For bug #165780, make config-protect code consistently ignore '.*~' and '.*.bak'. svn path=/main/trunk/; revision=5914 --- bin/dispatch-conf | 2 +- bin/emerge | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 397dfd420..309bd0db1 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -27,7 +27,7 @@ except ImportError: import dispatch_conf from portage.process import find_binary -FIND_EXTANT_CONFIGS = "find '%s' %s -iname '._cfg????_%s'" +FIND_EXTANT_CONFIGS = "find '%s' %s -iname '._cfg????_%s' ! -iname '.*~' ! -iname '.*.bak'" DIFF_CONTENTS = 'diff -Nu %s %s' DIFF_CVS_INTERP = 'diff -Nu %s %s | grep "^[+-][^+-]" | grep -v "# .Header:.*"' DIFF_WSCOMMENTS = 'diff -Nu %s %s | grep "^[+-][^+-]" | grep -v "^[-+]#" | grep -v "^[-+][:space:]*$"' 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: -- 2.26.2