From: Mike Frysinger Date: Tue, 16 Jan 2007 22:43:39 +0000 (-0000) Subject: make sure we rename links and not just what they point to #162451 X-Git-Tag: v2.1.2-r1~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1651a12dfbcf423764af9e12dd760adff3def0b4;p=portage.git make sure we rename links and not just what they point to #162451 svn path=/main/trunk/; revision=5678 --- diff --git a/bin/ecompressdir b/bin/ecompressdir index 3f6fb251e..5d8c53581 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -34,7 +34,8 @@ for dir in "$@" ; do while read brokenlink ; do olddest=$(readlink "${brokenlink}") newdest="${olddest}${suffix}" - ln -snf "${newdest}" "${brokenlink}" + rm -f "${brokenlink}" + ln -snf "${newdest}" "${brokenlink}${suffix}" ((ret+=$?)) done done