diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index 2ce5da1..4bdebfe 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 24 14:28:07 UTC 2023 - Dr. Werner Fink + +- Better support of transactional updates (boo#1211613) + ------------------------------------------------------------------- Tue May 23 14:12:52 UTC 2023 - Dr. Werner Fink diff --git a/update.texlive b/update.texlive index d536d44..44a2ce4 100644 --- a/update.texlive +++ b/update.texlive @@ -19,6 +19,20 @@ # Author: Werner Fink, 1997-2012,2016 # +if test -n "${TRANSACTIONAL_UPDATE}" +then + umask 022 + mkdir -p /etc/texmf + > /etc/texmf/TRANSACTIONAL_UPDATE + rm -rf /var/run/texlive || : + find /var/cache/texmf /var/lib/texmf -type f -exec rm -f '{}' \+ + exit 0 +elif test -e /etc/texmf/TRANSACTIONAL_UPDATE +then + set -- force + rm -f /etc/texmf/TRANSACTIONAL_UPDATE || : +fi + if test -n "$1" -a "$1" = force; then umask 022 mkdir -p /var/run/texlive @@ -28,37 +42,14 @@ if test -n "$1" -a "$1" = force; then do > /var/run/texlive/$tag done - test -d /var/cache/texmf || { - mkdir -p /var/cache/texmf - chmod 1755 /var/cache/texmf - } if ! id mktex > /dev/null 2>&1; then useradd -U -d /var/cache/texmf/fonts -c "System user for mktex" -s "/usr/sbin/nologin" mktex fi - test -d /var/cache/texmf/fonts || { - mkdir -p /var/cache/texmf/fonts/pk - mkdir -p /var/cache/texmf/fonts/source - mkdir -p /var/cache/texmf/fonts/tfm - chown -R mktex:mktex /var/cache/texmf/fonts - chmod -R 3775 /var/cache/texmf/fonts - } test -e /var/cache/texmf/fonts/ls-R || { echo '% ls-R -- filename database for kpathsea; do not change this line.' > /var/cache/texmf/fonts/ls-R chmod 0664 /var/cache/texmf/fonts/ls-R chown mktex:mktex /var/cache/texmf/fonts/ls-R } - test -d /var/lib/texmf || { - mkdir -p /var/lib/texmf - chmod 1755 /var/lib/texmf - } - for dir in dist fonts fonts/dvipdfm fonts/dvips fonts/pdftex main md5 web2c \ - web2c/aleph web2c/eptex web2c/luatex web2c/metafont web2c/pdftex \ - web2c/ptex web2c/tex web2c/xetex - do - test -d /var/lib/texmf/${dir} && continue - mkdir -p /var/lib/texmf/${dir} - chmod 1755 /var/lib/texmf/${dir} - done for lsr in /var/lib/texmf/ls-R /var/lib/texmf/dist/ls-R /var/lib/texmf/main/ls-R do test -e $lsr && continue