On Mon, Oct 13, 2008 at 01:54:46PM +0200, Loïc Minier wrote:
>Hi
>
>gparted ships the /var/lib/scrollkeeper db generated during package
>build, overwriting the one of end users on install/upgrade of gparted.
>
>Please 1) stop shipping it and 2) fix the db on upgrades with a
>postinst snippet such as the following (from RB) on upgrades:
>
># version 0.9.4.1-1 started shipping /var/lib/scrollkeeper erroneously, hence
># the database was overwritten and needs a full rebuild
>if [ "$1" = "configure" ] && dpkg --compare-versions "$2" ge "0.9.4.1-1" && 
>dpkg --compare-versions "$2" lt "0.9.4.1-5" && which scrollkeeper-rebuilddb 
>>/dev/null 2>&1; then
>    echo "Upgrade from broken Rhythmbox version detected, running 
> scrollkeeper-rebuilddb..."
>    scrollkeeper-rebuilddb -q
>fi
>
>Thanks,

Hello Loïc,

Thanks to you!

Oct 15 00:44:53 <lool> anibal: Hmm rereading the postinst snippet I
                       proposed for gparted, it might actually be
                       more correct to use lt-nl rather than lt
Oct 15 00:45:15 <lool> nothing too dramatic, but might cause the fix
                       to run on initial install
Oct 15 00:45:25 <lool> or on reinstall rather

I'll replace the "lt" with "lt-nl" in the next upload of gparted.

Thanks again for your help.

The postinst that went into gparted 0.3.9-3 is:

--- gparted-0.3.9.orig/debian/gparted.postinst
+++ gparted-0.3.9/debian/gparted.postinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+# versions 0.3.9-1 and 0.3.9-2 shipped /var/lib/scrollkeeper erroneously,
+# overwritting the scrollkeeper database which requires a full rebuild
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" ge "0.3.9-1" && dpkg 
--compare-versions "$2" lt "0.3.9-3" && [ -x "`which scrollkeeper-rebuilddb 
2>/dev/null`" ]; then
+    echo "Upgrade from broken gparted version detected, running 
scrollkeeper-rebuilddb..."
+    scrollkeeper-rebuilddb -q
+fi
+
+#DEBHELPER#

Attachment: signature.asc
Description: Digital signature

Reply via email to