tag 389391 patch
usertag 389391 supplied-patch
thanks

Hi,

I have prepared a little NMU to fix the failure during purging. The
patch is attached and also fixes some lintian warnings (see changelog).
As I am no DD yet I can not do an actual upload, so if an interested DD
comes along; go ahead and do the upload.

Greetings Arjan

 libphidgets (0.3.8-1.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Only call ucf on purge when it is available. The modifications are
     taken from the example script in the ucf documentation. (Closes:
     #389391)
   * Added po-debconf to Build-Depends and make the build dependency on
     python-support versioned to fix some lintian errors.

diff -u libphidgets-0.3.8/debian/control libphidgets-0.3.8/debian/control
--- libphidgets-0.3.8/debian/control
+++ libphidgets-0.3.8/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: martin f. krafft <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.16), libhid-dev, libncurses5-dev, swig, python-dev, gcc (>= 4:3.0), pkg-config, libtool, docbook-xsl, python-support
+Build-Depends: debhelper (>= 4.1.16), libhid-dev, libncurses5-dev, swig, python-dev, gcc (>= 4:3.0), pkg-config, libtool, docbook-xsl, python-support (>= 0.3) , po-debconf
 Standards-Version: 3.7.2
 
 Package: libphidgets-dev
diff -u libphidgets-0.3.8/debian/changelog libphidgets-0.3.8/debian/changelog
--- libphidgets-0.3.8/debian/changelog
+++ libphidgets-0.3.8/debian/changelog
@@ -1,3 +1,14 @@
+libphidgets (0.3.8-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Only call ucf on purge when it is available. The modifications are
+    taken from the example script in the ucf documentation. (Closes:
+    #389391)
+  * Added po-debconf to Build-Depends and make the build dependency on
+    python-support versioned to fix some lintian errors.  
+
+ -- Arjan Oosting <[EMAIL PROTECTED]>  Thu, 28 Sep 2006 15:47:42 +0200
+
 libphidgets (0.3.8-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u libphidgets-0.3.8/debian/libphidgets0.postrm libphidgets-0.3.8/debian/libphidgets0.postrm
--- libphidgets-0.3.8/debian/libphidgets0.postrm
+++ libphidgets-0.3.8/debian/libphidgets0.postrm
@@ -6,8 +6,19 @@
 
 case $1 in
   purge)
-    ucf --purge $CONFFILE
-    rm -f $CONFFILE
+    # we mimic dpkg as closely as possible, so we remove configuration
+    # files with dpkg backup extensions too:
+    for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist .ucf-new .ucf-old .ucf-dist; do
+        rm -f $CONFFILE$ext
+    done
+
+    # remove the configuration file itself
+    rm -f $CONFFILE 
+
+    # and finally clear it out from the ucf database
+    if which ucf >/dev/null; then
+        ucf --purge $CONFFILE
+    fi
   ;;
 
   failed-upgrade|remove|upgrade)

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to