summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-11 21:11:31 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-11 21:11:31 +0000
commit52f08e9f46ed7c31a1cc03b2e84441ea2f2bf356 (patch)
tree128183533033669f18fe075d458d55d197dabb15 /bin/etc-update
parent7908fd64c4fcc42155205792d501e113b5def560 (diff)
downloadportage-52f08e9f46ed7c31a1cc03b2e84441ea2f2bf356.tar.gz
portage-52f08e9f46ed7c31a1cc03b2e84441ea2f2bf356.tar.bz2
portage-52f08e9f46ed7c31a1cc03b2e84441ea2f2bf356.zip
Revert r3129 and r3130 because they don't solve bug #129515.
svn path=/main/trunk/; revision=3132
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/etc-update b/bin/etc-update
index 234a6bd34..d2946c3a0 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -40,16 +40,11 @@ function scan() {
exit 1
fi
- # `readlink -f` is not supported on all systems, so it's necessary to test
- # for the alternative "realpath" program.
- local realpath_cmd="$(type -p "realpath")"
- [ -z "${realpath_cmd}" ] && realpath_cmd="readlink -q -f"
-
for path in ${CONFIG_PROTECT} ; do
[ ! -d ${path} ] && continue
ofile=""
- for file in `find -L ${path}/ -iname "._cfg????_*" -exec ${realpath_cmd} '{}' ';' | uniq |
+ for file in `find ${path}/ -iname "._cfg????_*" |
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:/[^/]*$::"`