Package: debhelper
Version: 5.0.42
Severity: normal
Tags: patch

After being bitten by bug #359614 I tried to purge the package I had just
installed, but that failed because the symlink in /etc/udev/rules.d/ was
not found...

set -e

# Automatically added by dh_installudev
if [ "$1" = purge ]; then
        [ -L /etc/udev/rules.d/z60_ahmissile.rules ] && \
        rm /etc/udev/rules.d/z60_ahmissile.rules
fi
# End automatically added section


This could probably be fixed by eigther removing the "set -e" or by changing
the remove line to:
if [ -L /etc/udev/rules.d/z60_ahmissile.rules ]; then
        rm /etc/udev/rules.d/z60_ahmissile.rules
fi


Patch attached.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (300, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=sv_SE (charmap=ISO-8859-1)

Versions of packages debhelper depends on:
ii  binutils                      2.17-3     The GNU assembler, linker and bina
ii  coreutils                     5.97-5.2   The GNU core utilities
ii  dpkg-dev                      1.13.25    package building tools for Debian
ii  file                          4.17-5     Determines file type using "magic"
ii  html2text                     1.3.2a-3   An advanced HTML to text converter
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  po-debconf                    1.0.8      manage translated Debconf template

debhelper recommends no packages.

-- no debconf information
diff -uri debhelper-5.0.42/autoscripts/postrm-udev 
debhelper-5.0.42.fixed/autoscripts/postrm-udev
--- debhelper-5.0.42/autoscripts/postrm-udev    2006-02-23 17:39:32.000000000 
+0100
+++ debhelper-5.0.42.fixed/autoscripts/postrm-udev      2007-01-15 
01:53:22.000000000 +0100
@@ -1,4 +1,5 @@
 if [ "$1" = purge ]; then
-       [ -L /etc/udev/rules.d/#PRIO##FILE# ] && \
-       rm /etc/udev/rules.d/#PRIO##FILE#
+       if [ -L /etc/udev/rules.d/#PRIO##FILE# ]; then
+               rm /etc/udev/rules.d/#PRIO##FILE#
+       fi
 fi

Reply via email to