From 0cb4cf371fcd13c33337ba8752764d1ee2cff425d2c1c7c1e9addfc2b20f91fa Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 22 Jan 2020 08:56:55 +0000 Subject: [PATCH] Overwrite not wanted sysmbolic links on ls-R files OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=120 --- texlive-filesystem.changes | 5 +++++ texlive-filesystem.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index f6ef3c6..1311ce4 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 22 08:55:38 UTC 2020 - Dr. Werner Fink + +- Overwrite not wanted sysmbolic links on ls-R files + ------------------------------------------------------------------- Thu Jan 16 12:02:43 UTC 2020 - Dr. Werner Fink diff --git a/texlive-filesystem.spec b/texlive-filesystem.spec index 9b029e8..6a21e73 100644 --- a/texlive-filesystem.spec +++ b/texlive-filesystem.spec @@ -15395,6 +15395,7 @@ for dir in %{_texmfconfdir} \ %{_texmfvardir}/dist \ %{_texmfvardir}/main do + test ! -h ${dir}/ls-R || rm -vf ${dir}/ls-R test -e ${dir}/ls-R || continue test "$(stat --format '%U:%G' ${dir}/ls-R)" != %{nobody}:%{texgrp} || continue chown %{nobody}:%{texgrp} ${dir}/ls-R || error=1 @@ -15411,7 +15412,7 @@ for dir in %{_texmfconfdir} \ %{_texmfvardir}/dist \ %{_texmfvardir}/main do - test ! -e ${dir}/ls-R || continue + test ! -e ${dir}/ls-R -o -h ${dir}/ls-R || continue tmp=$(mktemp ${dir}/ls-R.XXXXXX) || error=1 test $error = 0 || continue mv ${tmp} ${dir}/ls-R || error=1