]> git.donarmstrong.com Git - debhelper.git/blob - autoscripts/preinst-sgmlcatalog
dh_installcatalogs: Turn /etc/sgml/$package.cat into conffiles and introduce dependen...
[debhelper.git] / autoscripts / preinst-sgmlcatalog
1 if [ "$1" = "upgrade" ] && ! dpkg-query -S #CENTRALCAT# >/dev/null 2>&1; then
2         # If the dpkg-query command returns non-zero, the central catalog is
3         # not owned by any package. This is due to an old behaviour of
4         # debhelper. Now that file becomes a conffile. In order to avoid a
5         # question during installation, we remove the old non-conffile.
6         rm -f #CENTRALCAT#
7 fi