From: Zac Medico Date: Fri, 13 Apr 2007 05:44:23 +0000 (-0000) Subject: Use relative paths inside ecompressdir in order to avoid 'Argument list too long... X-Git-Tag: v2.1.2.4~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=678d56c57b955deb5451298ef2910d2000f7b7bb;p=portage.git Use relative paths inside ecompressdir in order to avoid 'Argument list too long' errors with large file sets (observed when installing sys-apps/man-pages). (trunk r6387:6388) svn path=/main/branches/2.1.2/; revision=6389 --- diff --git a/bin/ecompressdir b/bin/ecompressdir index 08acd2cc7..540b47818 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -51,6 +51,9 @@ for dir in "$@" ; do vecho "${0##*/}: ${dir#${D}} does not exist!" continue fi + cd "${dir}" + actual_dir=${dir} + dir=. # use relative path to avoid 'Argument list too long' errors # not uncommon for packages to compress doc files themselves funk_up_dir "decompress" ".Z" "gunzip" @@ -63,7 +66,7 @@ for dir in "$@" ; do # now lets do our work [[ -z ${suffix} ]] && continue - vecho "${0##*/}: $(ecompress --bin) ${dir#${D}}" + vecho "${0##*/}: $(ecompress --bin) ${actual_dir#${D}}" funk_up_dir "compress" "${suffix}" "ecompress" done