Dr. Werner Fink 2020-01-16 12:04:41 +00:00 committed by Git OBS Bridge
parent 57e89f2228
commit 7024729c08
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 16 12:02:43 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- 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 <werner@suse.de>

View File

@ -48,6 +48,7 @@ Requires(post): %fillup_prereq
Requires(post): permissions
Requires(post): /usr/bin/mktemp
Requires(post): /usr/bin/mv
Requires(pre): /usr/bin/stat
Requires(pre): /usr/bin/perl
Requires(pre): /usr/bin/clear
Requires(pre): /usr/bin/dialog
@ -15387,6 +15388,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