Package: debhelper
Version: 5.0.26
Severity: normal

dh_installudev installs a #DEBHELPER# fragment that makes a symlink from
/etc/udev/package.rules to /etc/udev/rules.d/package.rules, but only if
the installation is brand new (ie. [ -z "$2" ]). This is, AFAICS,
because an admin should be free to rm this symlink without worrying that
it will be reintroduced on the next upgrade.

However, if a package doesn't include this .rules file from the very
start, the symlink won't be created: version 1 will install as usual,
and when the .rules file is installed in an upgrade to version 2, $2 is
of course not empty (it's "1"), and the symlink is never created.

dh_installudev should probably take a parameter saying what version the
.rules files were introduced in, and check $2 against that with
dpkg --compare-versions. I can see there's problems here if multiple
independent files are introduced at different times by the same package,
but I guess that's a narrow enough use case that it won't be a problem
in practice?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.3
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)

Versions of packages debhelper depends on:
ii  binutils             2.16.1cvs20060117-1 The GNU assembler, linker and bina
ii  coreutils [fileutils 5.94-1              The GNU core utilities
ii  dpkg-dev             1.13.17             package building tools for Debian
ii  file                 4.17-1              Determines file type using "magic"
ii  fileutils            5.94-1              The GNU file management utilities 
ii  html2text            1.3.2a-3            An advanced HTML to text converter
ii  perl                 5.8.8-3             Larry Wall's Practical Extraction 
ii  po-debconf           1.0                 manage translated Debconf template

debhelper recommends no packages.

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to