r33781 - in /desktop/unstable/glib2.0/debian: changelog libglib2.0-0.postrm.in

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Fri Mar 30 13:37:04 UTC 2012


Author: mpitt
Date: Fri Mar 30 13:37:03 2012
New Revision: 33781

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=33781
Log:
debian/libglib2.0-0.postrm.in: Only remove the compiled schemas on purge,
not during upgrades. Otherwise we have no schemas available until the new
postinst is run, which leads to applications aborting on missing schemas.

Modified:
    desktop/unstable/glib2.0/debian/changelog
    desktop/unstable/glib2.0/debian/libglib2.0-0.postrm.in

Modified: desktop/unstable/glib2.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/glib2.0/debian/changelog?rev=33781&op=diff
==============================================================================
--- desktop/unstable/glib2.0/debian/changelog [utf-8] (original)
+++ desktop/unstable/glib2.0/debian/changelog [utf-8] Fri Mar 30 13:37:03 2012
@@ -2,6 +2,9 @@
 
   * 01_gettext-desktopfiles.patch: Use official "Keywords" key now,
     X-GNOME-Keywords has been deprecated for a while now. (LP: #949864)
+  * debian/libglib2.0-0.postrm.in: Only remove the compiled schemas on purge,
+    not during upgrades. Otherwise we have no schemas available until the new
+    postinst is run, which leads to applications aborting on missing schemas.
 
  -- Martin Pitt <mpitt at debian.org>  Fri, 30 Mar 2012 13:24:11 +0200
 

Modified: desktop/unstable/glib2.0/debian/libglib2.0-0.postrm.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/glib2.0/debian/libglib2.0-0.postrm.in?rev=33781&op=diff
==============================================================================
--- desktop/unstable/glib2.0/debian/libglib2.0-0.postrm.in [utf-8] (original)
+++ desktop/unstable/glib2.0/debian/libglib2.0-0.postrm.in [utf-8] Fri Mar 30 13:37:03 2012
@@ -14,7 +14,7 @@
     rmdir -p --ignore-fail-on-non-empty /usr/lib/gio/modules
 fi
 
-if [ -d /usr/share/glib-2.0/schemas ]; then
+if [ "$1" = purge ] && [ -d /usr/share/glib-2.0/schemas ]; then
     # Purge the compiled schemas
     rm -f /usr/share/glib-2.0/schemas/gschemas.compiled
     rmdir -p --ignore-fail-on-non-empty /usr/share/glib-2.0/schemas




More information about the pkg-gnome-commits mailing list