r22737 - in /desktop/unstable/gnome-menus/debian: changelog gnome-menus.postinst gnome-menus.prerm

joss at users.alioth.debian.org joss at users.alioth.debian.org
Sat Jan 9 12:34:40 UTC 2010


Author: joss
Date: Sat Jan  9 12:34:37 2010
New Revision: 22737

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=22737
Log:
gnome-menus.prerm: clean up before removing.

Added:
    desktop/unstable/gnome-menus/debian/gnome-menus.prerm
Modified:
    desktop/unstable/gnome-menus/debian/changelog
    desktop/unstable/gnome-menus/debian/gnome-menus.postinst

Modified: desktop/unstable/gnome-menus/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-menus/debian/changelog?rev=22737&op=diff
==============================================================================
--- desktop/unstable/gnome-menus/debian/changelog [utf-8] (original)
+++ desktop/unstable/gnome-menus/debian/changelog [utf-8] Sat Jan  9 12:34:37 2010
@@ -7,6 +7,7 @@
   * gnome-menus.triggers, gnome-menus.postinst: re-run it every time 
     something has changed in /usr/share/applications.
   * gnome-menus.install: install this.
+  * gnome-menus.prerm: clean up before removing.
 
  -- Josselin Mouette <joss at debian.org>  Sat, 09 Jan 2010 13:18:59 +0100
 

Modified: desktop/unstable/gnome-menus/debian/gnome-menus.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-menus/debian/gnome-menus.postinst?rev=22737&op=diff
==============================================================================
--- desktop/unstable/gnome-menus/debian/gnome-menus.postinst [utf-8] (original)
+++ desktop/unstable/gnome-menus/debian/gnome-menus.postinst [utf-8] Sat Jan  9 12:34:37 2010
@@ -1,5 +1,5 @@
 #! /bin/sh
-set -r
+set -e
 
 gnome-menus-blacklist
 

Added: desktop/unstable/gnome-menus/debian/gnome-menus.prerm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gnome-menus/debian/gnome-menus.prerm?rev=22737&op=file
==============================================================================
--- desktop/unstable/gnome-menus/debian/gnome-menus.prerm (added)
+++ desktop/unstable/gnome-menus/debian/gnome-menus.prerm [utf-8] Sat Jan  9 12:34:37 2010
@@ -1,0 +1,9 @@
+#! /bin/sh
+set -e
+
+if [ "$1" = remove ]; then
+    find /usr/share/gnome/applications -type f -name \*.desktop -exec rm -f '{}' \;
+    find /usr/share/gnome/applications -depth -type d -empty -exec rmdir '{}' \;
+fi
+
+#DEBHELPER#




More information about the pkg-gnome-commits mailing list