diff options
author | Alexis Ballier <aballier@gentoo.org> | 2015-09-21 10:01:46 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2015-09-21 10:01:46 +0200 |
commit | c4290c12e46e122717586141bfa8a75dcf33220e (patch) | |
tree | f2759cf0a8181460157f5a846711e4627a36f310 /eclass/texlive-common.eclass | |
parent | eclass: texlive-module.eclass: Do not sort execute directives to obtain same ... (diff) | |
download | gentoo-c4290c12e46e122717586141bfa8a75dcf33220e.tar.gz gentoo-c4290c12e46e122717586141bfa8a75dcf33220e.tar.bz2 gentoo-c4290c12e46e122717586141bfa8a75dcf33220e.zip |
eclass: texlive-common.eclass: Fix long standing bug: Do not overwrite existing symlinks.
The bug has been here since the beginning but surprisingly enough, it was only noticed now in bug #560722.
Diffstat (limited to 'eclass/texlive-common.eclass')
-rw-r--r-- | eclass/texlive-common.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index e4798b3acd95..ca0f4c6123ce 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -85,7 +85,7 @@ texlive-common_do_symlinks() { if [ $1 = $2 ]; then einfo "Symlink $1 -> $2 skipped" - elif [ -e "${ED}/usr/bin/$1" ]; + elif [ -e "${ED}/usr/bin/$1" -o -L "${ED}/usr/bin/$1" ]; then einfo "Symlink $1 skipped (file exists)" else |