From: Zac Medico Date: Sat, 29 Dec 2007 17:58:18 +0000 (-0000) Subject: Make the ecompressdir vecho output show a leading / on X-Git-Tag: v2.1.4~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd05019c56a5f0e7cd4d0d54cc5751159a8234d7;p=portage.git Make the ecompressdir vecho output show a leading / on the directory path. Thanks to armin76. (trunk r9110:9112) svn path=/main/branches/2.1.2/; revision=9113 --- diff --git a/bin/ecompressdir b/bin/ecompressdir index 8b1ab1749..8f5bff1b9 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -46,9 +46,10 @@ funk_up_dir() { ret=0 for dir in "$@" ; do + dir=${dir#/} dir="${D}${dir}" if [[ ! -d ${dir} ]] ; then - vecho "${0##*/}: ${dir#${D}} does not exist!" + vecho "${0##*/}: /${dir#${D}} does not exist!" continue fi cd "${dir}" @@ -66,7 +67,7 @@ for dir in "$@" ; do # now lets do our work [[ -z ${suffix} ]] && continue - vecho "${0##*/}: $(ecompress --bin) ${actual_dir#${D}}" + vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${D}}" funk_up_dir "compress" "${suffix}" "ecompress" done