summaryrefslogtreecommitdiff
path: root/autoscripts
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
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')
-rw-r--r--autoscripts/preinst-udev2
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