Package: debhelper
Version: 7.0.15
Severity: important
File: /usr/bin/dh_installudev
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
dh_installudev generates wrong postinst file, below an example for
dmraid.postinst:
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
if [ -e "/etc/udev/dmraid.rules" ]; then
echo "Preserving user changes to
/etc/udev/rules.d/85_dmraid.rules ..."
if [ -e "/etc/udev/rules.d/85_dmraid.rules" ]; then
mv -f "/etc/udev/rules.d/85_dmraid.rules"
"/etc/udev/rules.d/85_dmraid.rules.dpkg-new"
fi
mv -f "/etc/udev/dmraid.rules"
"/etc/udev/rules.d/85_dmraid.rules"
fi
fi
# End automatically added section
Why 'if [ -e "/etc/udev/dmraid.rules" ]' ?
Attached the trivial patch.
Giuseppe.
- -- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debhelper depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii dpkg-dev 1.14.22 Debian package development tools
ii file 4.26-1 Determines file type using "magic"
ii html2text 1.3.2a-5 advanced HTML to text converter
ii man-db 2.5.2-2 on-line manual pager
ii perl 5.10.0-13 Larry Wall's Practical Extraction
ii po-debconf 1.0.15 manage translated Debconf template
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 0.46 tool that converts source archives
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkjWQM0ACgkQNxpp46476aoN7ACfV/De3aRng0tqA/u6huiaMQ7G
+4kAn0ILDQufB3N/OBN58UXk8+9hZKg3
=8brS
-----END PGP SIGNATURE-----
--- autoscripts/postinst-udev.original 2007-12-31 23:45:13.000000000 +0100
+++ autoscripts/postinst-udev 2008-09-21 14:32:54.000000000 +0200
@@ -1,5 +1,5 @@
if [ "$1" = configure ]; then
- if [ -e "#OLD#" ]; then
+ if [ -e "#RULE#" ]; then
echo "Preserving user changes to #RULE# ..."
if [ -e "#RULE#" ]; then
mv -f "#RULE#" "#RULE#.dpkg-new"