r13357 - in /desktop/unstable/gconf2/debian: changelog gconf2.postinst gconf2.postrm
joss at users.alioth.debian.org
joss at users.alioth.debian.org
Thu Nov 1 17:35:29 UTC 2007
Author: joss
Date: Thu Nov 1 17:35:29 2007
New Revision: 13357
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=13357
Log:
* Add a "--register-all" option to gconf-schemas, to rebuild the GConf
* Rename the source package to gconf, to remove the (finally unused!)
* gconf2.postinst:
+ Run gconf-schemas --register-all on the first installation. This
allows installing packages shipping gconf schemas but not
depending on gconf2.
+ Also run update-gconf-defaults.
* gconf2.postrm: remove the directories in /var/lib/gconf to enforce a
correct behavior in the postinst.
Added:
desktop/unstable/gconf2/debian/gconf2.postrm
Modified:
desktop/unstable/gconf2/debian/changelog
desktop/unstable/gconf2/debian/gconf2.postinst
Modified: desktop/unstable/gconf2/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gconf2/debian/changelog?rev=13357&op=diff
==============================================================================
--- desktop/unstable/gconf2/debian/changelog (original)
+++ desktop/unstable/gconf2/debian/changelog Thu Nov 1 17:35:29 2007
@@ -1,12 +1,19 @@
gconf (2.20.1-1) unstable; urgency=low
- * Add a "--register-all" option to gconf-schemas, to rebuild the GConf
+ * Add a "--register-all" option to gconf-schemas, to rebuild the GConf
defaults database from scratch.
* New upstream translation and minor bugfix release.
- * Rename the source package to gconf, to remove the (finally unused!)
+ * Rename the source package to gconf, to remove the (finally unused!)
GConf 1 stuff.
-
- -- Josselin Mouette <joss at debian.org> Tue, 16 Oct 2007 12:09:06 +0200
+ * gconf2.postinst:
+ + Run gconf-schemas --register-all on the first installation. This
+ allows installing packages shipping gconf schemas but not
+ depending on gconf2.
+ + Also run update-gconf-defaults.
+ * gconf2.postrm: remove the directories in /var/lib/gconf to enforce a
+ correct behavior in the postinst.
+
+ -- Josselin Mouette <joss at debian.org> Thu, 01 Nov 2007 18:34:12 +0100
gconf2 (2.20.0-1) unstable; urgency=low
Modified: desktop/unstable/gconf2/debian/gconf2.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gconf2/debian/gconf2.postinst?rev=13357&op=diff
==============================================================================
--- desktop/unstable/gconf2/debian/gconf2.postinst (original)
+++ desktop/unstable/gconf2/debian/gconf2.postinst Thu Nov 1 17:35:29 2007
@@ -24,6 +24,18 @@
fi
done
+if [ "$1" = configure ] && [ -z "$2" ] || [ ! -d /var/lib/gconf/defaults ]; then
+ # First installation: rebuild the defaults database in case
+ # of packages shipping schemas but not depending on gconf2
+ gconf-schemas --register-all
+ SIGNAL_DAEMONS=no
+fi
+if [ "$1" = configure ] && [ -z "$2" ] || [ ! -d /var/lib/gconf/debian.defaults ]; then
+ # Same for the defaults
+ update-gconf-defaults
+ SIGNAL_DAEMONS=no
+fi
+
if [ "$SIGNAL_DAEMONS" = yes ]; then
# re-read gconf databases
kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
Added: desktop/unstable/gconf2/debian/gconf2.postrm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gconf2/debian/gconf2.postrm?rev=13357&op=file
==============================================================================
--- desktop/unstable/gconf2/debian/gconf2.postrm (added)
+++ desktop/unstable/gconf2/debian/gconf2.postrm Thu Nov 1 17:35:29 2007
@@ -1,0 +1,9 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+ rm -rf /var/lib/gconf/defaults
+ rm -rf /var/lib/gconf/debian.defaults
+fi
+
+#DEBHELPER#
More information about the pkg-gnome-commits
mailing list