]> git.donarmstrong.com Git - debhelper.git/commitdiff
r2004: file. (Thanks Wakko)
authorjoeyh <joeyh>
Thu, 31 May 2007 17:27:59 +0000 (17:27 +0000)
committerjoeyh <joeyh>
Thu, 31 May 2007 17:27:59 +0000 (17:27 +0000)
* Use dpkg-query to retrieve conffile info in udev rules upgrade code
  rather than parsing status directly. (Thanks Guillem)

autoscripts/preinst-udev
debian/changelog
dh_installudev

index 9d90a355b5bf40f0f77cc1f0f9a6787f1556ec86..2b6ede305231a16b192a7a41957bb5162d68dba6 100644 (file)
@@ -1,7 +1,7 @@
 if [ "$1" = install ] || [ "$1" = upgrade ]; then
        if [ -e "#OLD#" ]; then
                if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
-                    "`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' #OLD#'{s/.* //;p}}\" /var/lib/dpkg/status`" ]
+                    "`dpkg-query -W -f='${Conffiles}' #PACKAGE# | sed -n -e \"\\\\' #OLD#'s/.* //p\"`" ]
                then
                        rm -f "#OLD#"
                fi
index 8a72f9b7ad76ca4b2fa3bc879ee5688bed34e908..a46e35540bb027eeacd20376e52683ac88444460 100644 (file)
@@ -1,12 +1,14 @@
-debhelper (5.0.50) UNRELEASED; urgency=low
+debhelper (5.0.50) unstable; urgency=low
 
   * dh_installwm: If a path is not given, assume the file is in usr/bin, since
     usr/X11R6/bin now points to there.
   * Update urls to web page.
   * Add some checks for attempts to act on packages not defined in the control
-    file.
+    file. (Thanks Wakko)
+  * Use dpkg-query to retrieve conffile info in udev rules upgrade code 
+    rather than parsing status directly. (Thanks Guillem)
 
- -- Joey Hess <joeyh@debian.org>  Sun, 27 May 2007 22:27:59 -0400
+ -- Joey Hess <joeyh@debian.org>  Thu, 31 May 2007 13:14:06 -0400
 
 debhelper (5.0.49) unstable; urgency=low
 
index 768703a5c6692ebc38168451b3459881a75e87aa..44f3177ac97365b6877ed7cdd65f8abcd575b75f 100755 (executable)
@@ -79,7 +79,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                if (! $dh{NOSCRIPTS}) {
                        my $old="/etc/udev/$filename";
                        my $rule="/etc/udev/rules.d/$dh{PRIORITY}$filename";
-                       autoscript($package,"preinst","preinst-udev","s!#OLD#!$old!g;s!#RULE#!$rule!g");
+                       autoscript($package,"preinst","preinst-udev","s!#OLD#!$old!g;s!#RULE#!$rule!g;s!#PACKAGE#!$package!g");
                        autoscript($package,"postinst","postinst-udev","s!#OLD#!$old!g;s!#RULE#!$rule!g");
                }
        }