Date: Wednesday, July 25, 2012 @ 00:41:33 Author: remy Revision: 164047
Add a test for a matching texlive-core version. Formats will not be generated if the version does not match. Modified: texlive-bin/trunk/texlive.install -----------------+ texlive.install | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: texlive.install =================================================================== --- texlive.install 2012-07-25 00:49:28 UTC (rev 164046) +++ texlive.install 2012-07-25 04:41:33 UTC (rev 164047) @@ -16,13 +16,19 @@ } post_upgrade() { + local corename corever _pacout echo ">>> texlive: updating the filename database..." usr/bin/mktexlsr - echo -n "recreating all formats..." - usr/bin/fmtutil-sys --all 1>/dev/null - echo " done." - echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" - + _pacout=$(pacman -Q texlive-core 2>/dev/null) + read corename corever <<< ${_pacout} + if [[ ${corever} == 2012* ]]; then + echo -n "recreating all formats..." + usr/bin/fmtutil-sys --all 1>/dev/null + echo " done." + echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" + else + echo "WARNING: not recreating formats since texlive-core has version '$corever'" + fi [[ -x usr/bin/install-info ]] || return 0 for file in "${filelist[@]}"; do install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null