Package: alsa-utils
Version: 1.0.10-1
Severity: important
Tags: patch

Hello,

Reading alsa-utils postinst script, it seems that is recreate the udev
symlink on each upgrade.

According to /usr/share/doc/udev/README.Debian:

"MAINTAINERS BEWARE: the use of /etc/udev/rules.d/ by other packages is
discouraged, except when only RUN rules are added.
If you think your package needs to create a file there, then please
contact the udev package maintainer and explain your needs.
Packages should NEVER create files in /etc/udev/rules.d/, but create a
symlink the first time the package is installed (and never try again, to
allow the local system administrator to remove it)."

The patch attached should fix this bug.

Cheers,
-- 
Julien Danjou
// <[EMAIL PROTECTED]>     http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
diff -ru alsa-utils-1.0.10.orig/debian/postinst 
alsa-utils-1.0.10/debian/postinst
--- alsa-utils-1.0.10.orig/debian/postinst      2006-03-16 15:29:37.000000000 
+0100
+++ alsa-utils-1.0.10/debian/postinst   2006-03-16 15:30:04.000000000 +0100
@@ -6,7 +6,7 @@
 configure)
        # Set up udev rules symlink
        L="/etc/udev/rules.d/z60_alsa-utils.rules"
-       [ -e "$L" ] || [ -L "$L" ] || ln -s ../alsa-utils.rules "$L"
+       [ ! -z "$2" ] || [ -e "$L" ] || [ -L "$L" ] || ln -s 
../alsa-utils.rules "$L"
        ;;
 # abort-upgrade|abort-remove|abort-deconfigure)
        # Nothing to do because we didn't take any action in the prerm

Attachment: signature.asc
Description: Digital signature

Reply via email to