diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-11 22:30:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-11 22:30:19 +0000 |
commit | 4990ea47957fe42a27c235feba4f3d1bdc338f09 (patch) | |
tree | 2fd64b9c7027661bad31169676753c1292a1fb8a | |
parent | b2cd37eb6ccac05dc2f4ff02e686c26349899a7f (diff) | |
download | portage-4990ea47957fe42a27c235feba4f3d1bdc338f09.tar.gz portage-4990ea47957fe42a27c235feba4f3d1bdc338f09.tar.bz2 portage-4990ea47957fe42a27c235feba4f3d1bdc338f09.zip |
use cached suffix value and if it is not valid, lets warn
svn path=/main/trunk/; revision=5576
-rwxr-xr-x | bin/ecompressdir | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir index f6b7ed74d..3f6fb251e 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -10,7 +10,10 @@ fi # figure out the new suffix suffix=$(ecompress --suffix) -[[ -z ${suffix} ]] && exit 0 +if [[ -z ${suffix} ]] ; then + vecho "${0##*/}: unable to figure out compressed suffix" + exit 1 +fi source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -25,7 +28,7 @@ for dir in "$@" ; do vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}" fi - find "${dir}" -type f '!' -name '*'$(ecompress --suffix) -print0 | xargs -0 ecompress + find "${dir}" -type f '!' -name '*'${suffix} -print0 | xargs -0 ecompress ((ret+=$?)) find -L "${dir}" -type l | \ while read brokenlink ; do |