forked from pool/texlive-filesystem
Accepting request 764960 from Publishing:TeXLive
- Be sure that owner of ls-R files are corrected even on update of already existing texlive filesystem OBS-URL: https://build.opensuse.org/request/show/764960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texlive-filesystem?expand=0&rev=40
This commit is contained in:
commit
f7d72be417
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user