From 38e0e63a462ada3e516cd00f50d54828ca757a86 Mon Sep 17 00:00:00 2001 From: joeyh Date: Thu, 31 May 2007 17:27:59 +0000 Subject: r2004: file. (Thanks Wakko) * Use dpkg-query to retrieve conffile info in udev rules upgrade code rather than parsing status directly. (Thanks Guillem) --- autoscripts/preinst-udev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoscripts/preinst-udev') 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 -- cgit v1.2.3