diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index b9b9f8c..f6ef3c6 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 16 12:02:43 UTC 2020 - Dr. Werner Fink + +- Be sure that owner of ls-R files are corrected even on update + of already existing texlive filesystem + ------------------------------------------------------------------- Fri Jan 10 12:35:50 UTC 2020 - Dr. Werner Fink diff --git a/texlive-filesystem.spec b/texlive-filesystem.spec index ea70507..9b029e8 100644 --- a/texlive-filesystem.spec +++ b/texlive-filesystem.spec @@ -15387,6 +15387,19 @@ popd %pre %{_bindir}/getent group %{texgrp} > /dev/null 2>&1 || %{_sbindir}/groupadd -r %{?texgid:-g %texgid} %{texgrp} +# the ls-R file on update +error=0 +for dir in %{_texmfconfdir} \ + %{_fontcache} \ + %{_texmfvardir} \ + %{_texmfvardir}/dist \ + %{_texmfvardir}/main +do + 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 +done +test $error = 0 || exit 1 %post %fillup_only -n texlive