tags 615934 + patch quit -- 8< -- Subject: dh_installcatalogs: use update-sgmlcatalog in maintainer scripts if available
Closes: #615934 --- > But, um, I think you're supposed to do something. Maybe something like this? autoscripts/postinst-sgmlcatalog | 10 ++++++++-- autoscripts/prerm-sgmlcatalog | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/autoscripts/postinst-sgmlcatalog b/autoscripts/postinst-sgmlcatalog index 100dee2..49631eb 100644 --- a/autoscripts/postinst-sgmlcatalog +++ b/autoscripts/postinst-sgmlcatalog @@ -1,7 +1,13 @@ if [ "$1" = "configure" ]; then + if update-sgmlcatalog --version >/dev/null 2>&1; then + dh_update_catalog () { update-sgmlcatalog "$@"; } + else + dh_update_catalog () { update-catalog "$@"; } + fi + rm -f #CENTRALCAT# for ordcat in #ORDCATS#; do - update-catalog --quiet --add #CENTRALCAT# ${ordcat} + dh_update_catalog --quiet --add #CENTRALCAT# ${ordcat} done - update-catalog --quiet --add --super #CENTRALCAT# + dh_update_catalog --quiet --add --super #CENTRALCAT# fi diff --git a/autoscripts/prerm-sgmlcatalog b/autoscripts/prerm-sgmlcatalog index d6f6fa7..dd4c9c0 100644 --- a/autoscripts/prerm-sgmlcatalog +++ b/autoscripts/prerm-sgmlcatalog @@ -1,3 +1,9 @@ if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then - update-catalog --quiet --remove --super #CENTRALCAT# + if update-sgmlcatalog --version >/dev/null 2>&1; then + dh_update_catalog () { update-sgmlcatalog "$@"; } + else + dh_update_catalog () { update-catalog "$@"; } + fi + + dh_update_catalog --quiet --remove --super #CENTRALCAT# fi -- 1.7.4.1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org