diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-01-16 22:43:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-01-16 22:43:39 +0000 |
commit | 1651a12dfbcf423764af9e12dd760adff3def0b4 (patch) | |
tree | 93698a20186ba87560304d2ffde3e92c40120f66 | |
parent | be5195389ff9c516243a8fc88e01852e84564461 (diff) | |
download | portage-1651a12dfbcf423764af9e12dd760adff3def0b4.tar.gz portage-1651a12dfbcf423764af9e12dd760adff3def0b4.tar.bz2 portage-1651a12dfbcf423764af9e12dd760adff3def0b4.zip |
make sure we rename links and not just what they point to #162451
svn path=/main/trunk/; revision=5678
-rwxr-xr-x | bin/ecompressdir | 3 |
1 files changed, 2 insertions, 1 deletions
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 |