eclass: texlive-common.eclass: Fix long standing bug: Do not overwrite existing symlinks.
authorAlexis Ballier <aballier@gentoo.org>
Mon, 21 Sep 2015 08:01:46 +0000 (10:01 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 21 Sep 2015 08:01:46 +0000 (10:01 +0200)
The bug has been here since the beginning but surprisingly enough, it was only noticed now in bug #560722.

eclass/texlive-common.eclass

index e4798b3acd9583efaa14feea5d4cf65be3e48d8a..ca0f4c6123cecc30ad8f53b0769d7451932da40f 100644 (file)
@@ -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