r659 - in /trunk/boinc/debian: boinc-client.preinst changelog

fst-guest at users.alioth.debian.org fst-guest at users.alioth.debian.org
Thu May 31 18:03:15 UTC 2007


Author: fst-guest
Date: Thu May 31 18:03:14 2007
New Revision: 659

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=659
Log:
debian/boinc-client.preinst: Use dpkg-query instead of poking directly into
the dpkg status file. See this thread for more information:
http://lists.debian.org/debian-devel/2007/05/msg01070.html

Modified:
    trunk/boinc/debian/boinc-client.preinst
    trunk/boinc/debian/changelog

Modified: trunk/boinc/debian/boinc-client.preinst
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.preinst?rev=659&op=diff
==============================================================================
--- trunk/boinc/debian/boinc-client.preinst (original)
+++ trunk/boinc/debian/boinc-client.preinst Thu May 31 18:03:14 2007
@@ -15,7 +15,7 @@
 
     if [ -e "$CONFFILE" ]; then
         cur_md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
-        old_md5sum="`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' $CONFFILE'{s/.* //;p}}\" /var/lib/dpkg/status`"
+        old_md5sum="`dpkg-query -W -f='${Conffiles}' boinc-client | sed -n -e \"\\\\' $CONFFILE's/.* //p\"`"
         if [ "$cur_md5sum" != "$old_md5sum" ]; then
             echo "Obsolete conffile $CONFFILE has been modified by you."
             echo "Saving as $CONFFILE.dpkg-bak ..."

Modified: trunk/boinc/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/changelog?rev=659&op=diff
==============================================================================
--- trunk/boinc/debian/changelog (original)
+++ trunk/boinc/debian/changelog Thu May 31 18:03:14 2007
@@ -17,8 +17,11 @@
     command line options instead of one because that is it's default now.
   * debian/boinc-client.postinst: Use "[ ... ] && [ ... ]" instead of
     "[ ... -a ... ]" because these constructs are much easier to read.
-
- -- Frank S. Thomas <frank at thomas-alfeld.de>  Wed, 30 May 2007 14:50:07 +0200
+  * debian/boinc-client.preinst: Use dpkg-query instead of poking directly
+    into the dpkg status file. See this thread for more information:
+    http://lists.debian.org/debian-devel/2007/05/msg01070.html
+
+ -- Frank S. Thomas <frank at thomas-alfeld.de>  Thu, 31 May 2007 19:55:35 +0200
 
 boinc (5.8.17-2) unstable; urgency=low
 




More information about the pkg-boinc-commits mailing list