git://git.onelab.eu
/
rvm-ruby.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f57b11
)
attempt to fix dangling symliknks
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 6 Jun 2013 11:47:27 +0000
(13:47 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 6 Jun 2013 11:47:27 +0000
(13:47 +0200)
rpm/rvm-ruby.spec
patch
|
blob
|
history
diff --git
a/rpm/rvm-ruby.spec
b/rpm/rvm-ruby.spec
index
3050fb7
..
801cc13
100644
(file)
--- a/
rpm/rvm-ruby.spec
+++ b/
rpm/rvm-ruby.spec
@@
-153,7
+153,11
@@
find $br -type f -print0 | xargs -0 sed -i "s,$br,$slashes,g"
# Fix symlinks with bad path
for f in $(find $br -type l |grep "$br"); do
- ln -sfn $(readlink -f $f |sed "s,$br,,") $f
+# original version read like this
+# ln -sfn $(readlink -f $f |sed "s,$br,,") $f
+# however in the PL environment, readlink transforms /longbuildroot into /build,
+# and then sed fails to do its job, so readlink does not seem such a good idea
+ ln -sfn $(echo $f | sed "s,^$br,,") $f
done
find $br -maxdepth 1 -name '.*' -exec rm -rf {} \;