make sure we rename links and not just what they point to #162451
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Jan 2007 22:43:39 +0000 (22:43 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 16 Jan 2007 22:43:39 +0000 (22:43 -0000)
svn path=/main/trunk/; revision=5678

bin/ecompressdir

index 3f6fb251ec79a5861fe42b1b998a81fe349d1f98..5d8c535814aa1a5d08c7be7505929b6785bc8eed 100755 (executable)
@@ -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