[Pkg-utopia-commits] r1539 - in /packages/unstable/dhcdbd/debian: changelog dhcdbd.preinst
biebl at users.alioth.debian.org
biebl at users.alioth.debian.org
Thu Jun 21 17:28:28 UTC 2007
Author: biebl
Date: Thu Jun 21 17:28:28 2007
New Revision: 1539
URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=1539
Log:
* debian/dhcdbd.preinst
- Do not parse /var/lib/dpkg/status directly but use dpkg-query instead.
Modified:
packages/unstable/dhcdbd/debian/changelog
packages/unstable/dhcdbd/debian/dhcdbd.preinst
Modified: packages/unstable/dhcdbd/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dhcdbd/debian/changelog?rev=1539&op=diff
==============================================================================
--- packages/unstable/dhcdbd/debian/changelog (original)
+++ packages/unstable/dhcdbd/debian/changelog Thu Jun 21 17:28:28 2007
@@ -5,6 +5,8 @@
- Removed. Applied upstream.
* debian/dhcdbd.init
- Don't fail to start if dhcdbd is already running.
+ * debian/dhcdbd.preinst
+ - Do not parse /var/lib/dpkg/status directly but use dpkg-query instead.
-- Michael Biebl <biebl at debian.org> Tue, 19 Jun 2007 22:24:02 +0100
Modified: packages/unstable/dhcdbd/debian/dhcdbd.preinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dhcdbd/debian/dhcdbd.preinst?rev=1539&op=diff
==============================================================================
--- packages/unstable/dhcdbd/debian/dhcdbd.preinst (original)
+++ packages/unstable/dhcdbd/debian/dhcdbd.preinst Thu Jun 21 17:28:28 2007
@@ -22,7 +22,7 @@
if [ -e "$CONFFILE" ]; then
md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
- old_md5sum="`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $CONFFILE '{s/ obsolete$//;s/.* //;p}}\" /var/lib/dpkg/status`"
+ old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
if [ "$md5sum" != "$old_md5sum" ]; then
echo "Obsolete conffile $CONFFILE has been modified by you, renaming to .dpkg-bak"
mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
More information about the Pkg-utopia-commits
mailing list