r763 - lvm2/trunk/debian
Bastian Blank
waldi at alioth.debian.org
Fri Nov 6 17:16:21 UTC 2009
Author: waldi
Date: Fri Nov 6 17:16:20 2009
New Revision: 763
Log:
debian/dmsetup.preinst: Use dpkg-query.
Modified:
lvm2/trunk/debian/dmsetup.preinst
Modified: lvm2/trunk/debian/dmsetup.preinst
==============================================================================
--- lvm2/trunk/debian/dmsetup.preinst Fri Nov 6 17:15:26 2009 (r762)
+++ lvm2/trunk/debian/dmsetup.preinst Fri Nov 6 17:16:20 2009 (r763)
@@ -7,7 +7,7 @@
if [ -e "$1" ]; then
md5sum="$(md5sum "$1" | awk '{print $1}')"
- old_md5sum="$(sed -n -e "/^Conffiles:/,/^[^ ]/{\' $1'{p}}" /var/lib/dpkg/status | awk '{print $2}')"
+ old_md5sum="$(dpkg-query -W -f='${Conffiles}' dmsetup | sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }"))"
if [ "$md5sum" != "$old_md5sum" ]; then
echo "Obsolete conffile $CONFFILE has been modified by you."
echo "Saving as $CONFFILE.dpkg-bak ..."
More information about the pkg-lvm-commits
mailing list