[Debian-tex-commits] SVN tex-common commit + diffs: r4444 - tex-common/branches/for-tl2008/debian
Norbert Preining
preining at alioth.debian.org
Sat Dec 12 22:51:18 UTC 2009
Author: preining
Date: 2009-12-12 22:51:18 +0000 (Sat, 12 Dec 2009)
New Revision: 4444
Modified:
tex-common/branches/for-tl2008/debian/changelog
tex-common/branches/for-tl2008/debian/postinst.in
Log:
only call fmtutil-sys in postinst if texlive-base is configured
(Closes: #560854)
Modified: tex-common/branches/for-tl2008/debian/changelog
===================================================================
--- tex-common/branches/for-tl2008/debian/changelog 2009-12-12 16:51:18 UTC (rev 4443)
+++ tex-common/branches/for-tl2008/debian/changelog 2009-12-12 22:51:18 UTC (rev 4444)
@@ -1,3 +1,10 @@
+tex-common (2.03) unstable; urgency=low
+
+ * only call fmtutil-sys in postinst if texlive-base is configured
+ (Closes: #560854)
+
+ -- Norbert Preining <preining at debian.org> Sun, 13 Dec 2009 07:50:25 +0900
+
tex-common (2.02) unstable; urgency=low
* upload to unstable
Modified: tex-common/branches/for-tl2008/debian/postinst.in
===================================================================
--- tex-common/branches/for-tl2008/debian/postinst.in 2009-12-12 16:51:18 UTC (rev 4443)
+++ tex-common/branches/for-tl2008/debian/postinst.in 2009-12-12 22:51:18 UTC (rev 4444)
@@ -339,9 +339,26 @@
trigger="texmf-lsr texmf-map"
do_triggers
+
# now call the equivalent of fmtutil-sys --all explicitely
+ # we also have to check that texlive-base is installed
+ # and configured, otherwise we cannot be sure that
+ # all necessary basic files are present
if dhit_libkpathsea_configured; then
- dhit_build_format --all
+ stat=$(dpkg-query -W -f='${Status}' texlive-base)
+ case "$stat" in
+ "install ok installed")
+ do_it=1
+ ;;
+ *)
+ do_it=0
+ ;;
+ esac
+ if [ "$do_it" = 0 ] ; then
+ echo "texlive-base is not ready, skipping fmtutil-sys --all call" >&2
+ else
+ dhit_build_format --all
+ fi
fi
More information about the Debian-tex-commits
mailing list