Package: sgmltexi
Followup-For: Bug #391206

Here is the patch for nmu: 2003.00.00-2.1

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (30, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.11-grsec
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
diff -puriN sgmltexi-2003.00.00.orig/debian/changelog 
sgmltexi-2003.00.00/debian/changelog
--- sgmltexi-2003.00.00.orig/debian/changelog   2004-01-05 06:36:04.000000000 
+0000
+++ sgmltexi-2003.00.00/debian/changelog        2006-10-07 15:48:41.000000000 
+0000
@@ -1,3 +1,18 @@
+sgmltexi (2003.00.00-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * postrm no longer calls update-catalog if not present when purging.
+  (Closes: #391206)
+  * Fixed utf-8 syntax of Changelog.
+  * debian/control
+    + Set Standards-Version to 3.7.2.
+    + Fixed description.
+    + Build-Depends on debhelper (>> 4.0.0)
+  * debian/rules
+    + Set DH_COMPAT to 4.
+
+ -- Arnaud Hocevar <[EMAIL PROTECTED]>  Sat,  7 Oct 2006 15:46:09 +0000
+
 sgmltexi (2003.00.00-2) unstable; urgency=low
 
   * Description improved
@@ -38,7 +53,7 @@ sgmltexi (2001.09.03) unstable; urgency=
 
 sgmltexi (2001.09.03) unstable; urgency=low
 
-  * Modifiche fatte qua e là per sistemare l'installazione dei
+  * Modifiche fatte qua e là per sistemare l'installazione dei
     file Info nel modo corretto.
   * Modifica alla documentazione.
   * Modificato il file debian/rulse.
diff -puriN sgmltexi-2003.00.00.orig/debian/control 
sgmltexi-2003.00.00/debian/control
--- sgmltexi-2003.00.00.orig/debian/control     2004-01-05 06:37:38.000000000 
+0000
+++ sgmltexi-2003.00.00/debian/control  2006-10-07 15:45:00.000000000 +0000
@@ -2,13 +2,13 @@ Source: sgmltexi
 Section: text
 Priority: optional
 Maintainer: Gaetano Paolone (bigpaul) <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 3.0.0)
-Standards-Version: 3.5.8.0
+Build-Depends: debhelper (>> 4.0.0)
+Standards-Version: 3.7.2
 
 Package: sgmltexi
 Architecture: any
 Depends: gettext, sp (>= 1.3.4-1.2.1-16), texinfo (>= 4.0-4), tetex-bin (>= 
0.9.990310-1), tetex-base (>= 0.990311-1), tetex-extra (>= 1.0.2), 
liblocale-gettext-perl (>= 1.01-8), sgml-data, sgml-base
-Description: This package provides a SGML typesetting system
+Description: SGML typesetting system
  Sgmltexi is a SGML typesetting system based on Texinfo.
  Sgmltexi is an SGML system (DTD and tools) to make Texinfo
  documentation using SGML. The Sgmltexi DTD is designed to 
Les fichiers binaires sgmltexi-2003.00.00.orig/debian/.control.swp et 
sgmltexi-2003.00.00/debian/.control.swp sont différents.
diff -puriN sgmltexi-2003.00.00.orig/debian/postrm 
sgmltexi-2003.00.00/debian/postrm
--- sgmltexi-2003.00.00.orig/debian/postrm      2003-03-31 08:40:54.000000000 
+0000
+++ sgmltexi-2003.00.00/debian/postrm   2006-10-07 15:20:42.000000000 +0000
@@ -1,5 +1,7 @@
-#!/bin/bash
-
+#!/bin/sh
+# postrm script for sgmltexi
+#
+# see: dh_installdeb(1)
 package=sgmltexi
 pkgdatadir=/usr/share/sgml/$package
 pkgdocdir=/usr/share/doc/$package
@@ -7,13 +9,45 @@ pkgdocdir=/usr/share/doc/$package
 centralized_catalog=/etc/sgml/$package.cat
 ordinary_catalog=$pkgdatadir/$package.cat
 
-# removing catalog entries
-update-catalog --remove --super $centralized_catalog
-update-catalog --remove $centralized_catalog $ordinary_catalog
-
-# removing catalog file: update-catalog(8)
-# should delete the centralized catalog if
-# it is empty.
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove)
+        # removing catalog entries
+        update-catalog --remove --super $centralized_catalog
+        update-catalog --remove $centralized_catalog $ordinary_catalog
+    ;;
+    purge)
+        if update-catalog >/dev/null 2>&1 --help || test "$?" = 255; then
+            # removing catalog entries
+            update-catalog --remove --super $centralized_catalog
+            update-catalog --remove $centralized_catalog $ordinary_catalog
+        fi
+    ;;
+    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+    *)
+    echo "postrm called with unknown argument \`$1'" >&2
+    exit 1
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
 
 #DEBHELPER#
 
+exit 0
+
diff -puriN sgmltexi-2003.00.00.orig/debian/rules 
sgmltexi-2003.00.00/debian/rules
--- sgmltexi-2003.00.00.orig/debian/rules       2004-01-05 06:34:30.000000000 
+0000
+++ sgmltexi-2003.00.00/debian/rules    2006-10-07 15:28:43.000000000 +0000
@@ -7,7 +7,7 @@
 
 
 # This is the debhelper compatability version to use.
-export DH_COMPAT=3
+export DH_COMPAT=4
 
 configure: configure-stamp
 configure-stamp:

Reply via email to