summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-15 06:00:28 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-15 06:00:28 +0000
commit0946e060ad18b8dd4b30bbaf00460831a6aee912 (patch)
treec1aa836c3f259338f77c0381d679a206d7b5791f
parent881a74506898c4fcfae0a64af2462e35793f9eba (diff)
downloadportage-0946e060ad18b8dd4b30bbaf00460831a6aee912.tar.gz
portage-0946e060ad18b8dd4b30bbaf00460831a6aee912.tar.bz2
portage-0946e060ad18b8dd4b30bbaf00460831a6aee912.zip
Bug #173284 - Do not traverse hidden directories such as .svn or .git when
search for protected files. svn path=/main/trunk/; revision=11929
-rwxr-xr-xbin/dispatch-conf5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/dispatch-conf b/bin/dispatch-conf
index 07131b55e..76f9b0c04 100755
--- a/bin/dispatch-conf
+++ b/bin/dispatch-conf
@@ -28,7 +28,7 @@ except ImportError:
from portage import dispatch_conf
from portage.process import find_binary
-FIND_EXTANT_CONFIGS = "find '%s' %s -iname '._cfg????_%s' ! -iname '.*~' ! -iname '.*.bak'"
+FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print"
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:]*$'"
@@ -93,11 +93,12 @@ class dispatch:
except OSError:
continue
basename = "*"
- find_opts = ""
+ find_opts = "-name '.*' -type d -prune -o"
if not stat.S_ISDIR(mymode):
path, basename = os.path.split(path)
find_opts = "-maxdepth 1"
+ print FIND_EXTANT_CONFIGS % (path, find_opts, basename)
confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines())
if self.options['use-rcs'] == 'yes':