From: Zac Medico Date: Sat, 2 Jun 2012 04:06:14 +0000 (-0700) Subject: ecompressdir: fix brokenlink newdest logic X-Git-Tag: v2.2.0_alpha109~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b2e4d5a48e17ae1a637c6de7a311cd9055dd02e;p=portage.git ecompressdir: fix brokenlink newdest logic Was broken in commit bbacf8674168cf033de0ccb161f568d0b26f032b. --- diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir index c77d9982a..6801a07d4 100755 --- a/bin/ebuild-helpers/ecompressdir +++ b/bin/ebuild-helpers/ecompressdir @@ -86,7 +86,11 @@ funk_up_dir() { [[ ${olddest} == *${suffix} ]] || continue newdest=${olddest%${suffix}} fi - [[ -f ${newdest} ]] || continue + if [[ "${newdest}" == /* ]] ; then + [[ -f "${D}${newdest}" ]] || continue + else + [[ -f "${dir}/${brokenlink%/*}/${newdest}" ]] || continue + fi rm -f "${brokenlink}" [[ ${act} == "compress" ]] \ && ln -snf "${newdest}" "${brokenlink}${suffix}" \