summaryrefslogtreecommitdiff
path: root/autoscripts/preinst-udev
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-05-31 17:27:59 +0000
committerjoeyh <joeyh>2007-05-31 17:27:59 +0000
commit38e0e63a462ada3e516cd00f50d54828ca757a86 (patch)
tree35d563a7bc5f217df63821ecc79745eea87ae424 /autoscripts/preinst-udev
parent2e7c77052024eb60c4a61b7098b3b3f965e25b95 (diff)
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/preinst-udev')
-rw-r--r--autoscripts/preinst-udev2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/preinst-udev b/autoscripts/preinst-udev
index 9d90a35..2b6ede3 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