Bug#403641: tetex-base: postrm fails if just unpackaged.
In fact, this problem is taken care of by the dh_installtex snippets,
and the approach is closer to "ignore errors but display a warning" than
to "run the commands iff tex-common is configured, not ignoring errors":
,----[ From lmodern's current postrm ]
| case "$1" in
| remove|disappear)
| dhit_check_run_without_errors -silent update-updmap --quiet
| dhit_check_run_without_errors -silent update-language
| dhit_check_run_without_errors -silent update-fmtutil
| if dhit_libkpathsea_configured; then
| dhit_check_run_without_errors mktexlsr
| fi
| for i in map ; do
| if [ "$i" = map ] ; then
| dhit_libkpathsea_configured && \
| dhit_check_run_without_errors updmap-sys
| fi
| if [ "$i" = format ] ; then
| for fmt in ; do
| rm -f /var/lib/texmf/web2c/$fmt.*
| done
| fi
| if [ "$i" = language ] ; then
| if dhit_libkpathsea_configured && \
| which fmtutil-sys >/dev/null; then
| dhit_build_hyphen_format_if_format_exists \
| latex $(kpsewhich language.dat)
| fi
| fi
| done
| ;;
`----
Maybe tetex-base should do the same, or something similar.
--
Florent
Reply to: