tag 383616 + patch stop On Fri, Aug 18, 2006, Loïc Minier wrote: > gnopernicus ships var/scrollkeeper/zh_CN/scrollkeeper_cl.xml > etc., i.e. a scrollkeeper database (incomplete).
Here's a proposed fix and a snippet to repair borken systems (untested). I searched for the first version the problem appeared in via snapshot.debian.net. WARNING: you have to update the "1.0.5-1.1" version in gnopernicus.postinst with the exact version in which you add the snippet. -- Loïc Minier <[EMAIL PROTECTED]>
--- gnopernicus-1.0.5/debian/changelog +++ gnopernicus-1.0.5/debian/changelog @@ -1,3 +1,12 @@ +gnopernicus (1.0.5-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Stop shipping /var/scrollkeeper. + * Add a postinst snippet to fix systems where gnopernicus broke the + scrollkeeper database. + + -- Loic Minier <[EMAIL PROTECTED]> Fri, 18 Aug 2006 13:51:54 +0200 + gnopernicus (1.0.5-1) unstable; urgency=low * New upstream release --- gnopernicus-1.0.5/debian/rules +++ gnopernicus-1.0.5/debian/rules @@ -15,0 +16,4 @@ + +binary-post-install/gnopernicus:: + rm -rf debian/gnopernicus/var/scrollkeeper + -rmdir debian/gnopernicus/var --- gnopernicus-1.0.5.orig/debian/gnopernicus.postinst +++ gnopernicus-1.0.5/debian/gnopernicus.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +# version 1.0.5-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 "1.0.5-1" && dpkg --compare-versions "$2" lt "1.0.5-1.1" && which scrollkeeper-rebuilddb >/dev/null 2>&1; then + echo "Upgrade from broken Gnopernicus version detected, running scrollkeeper-rebuilddb..." + scrollkeeper-rebuilddb -q +fi + +#DEBHELPER# +

