diff options
author | joeyh <joeyh> | 2007-05-31 17:27:59 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2007-05-31 17:27:59 +0000 |
commit | 38e0e63a462ada3e516cd00f50d54828ca757a86 (patch) | |
tree | 35d563a7bc5f217df63821ecc79745eea87ae424 /autoscripts | |
parent | 2e7c77052024eb60c4a61b7098b3b3f965e25b95 (diff) | |
download | debhelper-38e0e63a462ada3e516cd00f50d54828ca757a86.tar.gz |
r2004: file. (Thanks Wakko)
* Use dpkg-query to retrieve conffile info in udev rules upgrade code
rather than parsing status directly. (Thanks Guillem)
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/preinst-udev | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/preinst-udev b/autoscripts/preinst-udev index 9d90a355..2b6ede30 100644 --- a/autoscripts/preinst-udev +++ b/autoscripts/preinst-udev @@ -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 |