From: Zac Medico Date: Fri, 13 Apr 2007 05:43:48 +0000 (-0000) Subject: Use relative paths inside ecompressdir in order to avoid 'Argument list too long... X-Git-Tag: v2.2_pre1~1492 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae214443f004c3ba11d9fba148fb4e6a0f50c4d4;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). svn path=/main/trunk/; revision=6388 --- diff --git a/bin/ecompressdir b/bin/ecompressdir index 22ab4310c..590fae75b 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -102,6 +102,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 # hide all the stuff we want to skip hide_skip_dirs "${dir}" @@ -122,7 +125,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" # finally, restore the skipped stuff