summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex/texlive-new/texlinks.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive-new/texlinks.patch')
-rw-r--r--pkgs/tools/typesetting/tex/texlive-new/texlinks.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive-new/texlinks.patch b/pkgs/tools/typesetting/tex/texlive-new/texlinks.patch
new file mode 100644
index 000000000000..613fa819e12a
--- /dev/null
+++ b/pkgs/tools/typesetting/tex/texlive-new/texlinks.patch
@@ -0,0 +1,15 @@
+Don't overwrite already existing files!
+
+diff --git a/texmf-dist/scripts/texlive/texlinks.sh b/texmf-dist/scripts/texlive/texlinks.sh
+index 91540ea..9b1d7ed 100755
+--- a/texmf-dist/scripts/texlive/texlinks.sh
++++ b/texmf-dist/scripts/texlive/texlinks.sh
+@@ -157,7 +157,7 @@ install_link()
+       verbose_echo "skipped ConTeXtish symlink $src -> $dest (special case)"
+       ;;
+     *)
+-      test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" &&
++      test ! -f "$src" &&
+         rm -f "$src"
+   
+       if test -f "$src"; then