projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be51953
)
make sure we rename links and not just what they point to #162451
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 16 Jan 2007 22:43:39 +0000
(22:43 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 16 Jan 2007 22:43:39 +0000
(22:43 -0000)
svn path=/main/trunk/; revision=5678
bin/ecompressdir
patch
|
blob
|
history
diff --git
a/bin/ecompressdir
b/bin/ecompressdir
index 3f6fb251ec79a5861fe42b1b998a81fe349d1f98..5d8c535814aa1a5d08c7be7505929b6785bc8eed 100755
(executable)
--- 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