summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-04-13 16:49:24 +0000
committerSimon Stelling <blubb@gentoo.org>2006-04-13 16:49:24 +0000
commited8535595ed7600d59fcd48632c791518b578556 (patch)
tree2832bd7213eba01c1a5bdcfb2795a980de2dddd4
parentff2c2ee70b8a8d71f4e1ff1d4a8eb4104f99c117 (diff)
downloadportage-ed8535595ed7600d59fcd48632c791518b578556.tar.gz
portage-ed8535595ed7600d59fcd48632c791518b578556.tar.bz2
portage-ed8535595ed7600d59fcd48632c791518b578556.zip
ignore backup files when scanning for ._cfg????_*; bug 121401
svn path=/main/trunk/; revision=3139
-rwxr-xr-xbin/etc-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 885d513a7..07d0f6438 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -44,7 +44,7 @@ function scan() {
[ ! -d ${path} ] && continue
ofile=""
- for file in `find ${path}/ -iname "._cfg????_*" |
+ for file in `find ${path}/ -iname '._cfg????_*' ! -name '.*~' ! -name '.*.bak' |
sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'`; do
rpath=`echo "${file/\/\///}" | sed -e "s:/[^/]*$::"`