From 6fbdd2899f39266e458531dcffefb85b9ce8d1b9 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Dec 2012 02:32:08 -0800 Subject: Tue Dec 25 02:27:55 PST 2012 --- extra/gnumeric/gnumeric.install | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'extra/gnumeric/gnumeric.install') diff --git a/extra/gnumeric/gnumeric.install b/extra/gnumeric/gnumeric.install index 50ee0a7e2..b4b8223dd 100644 --- a/extra/gnumeric/gnumeric.install +++ b/extra/gnumeric/gnumeric.install @@ -1,26 +1,19 @@ -pkgname=gnumeric - post_install() { usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas - usr/sbin/gconfpkg --install ${pkgname} gtk-update-icon-cache -q -t -f usr/share/icons/hicolor update-desktop-database -q } pre_upgrade() { - pre_remove $1 + if [ -f usr/share/gconf/schemas/gnumeric.schemas ]; then + usr/sbin/gconfpkg --uninstall gnumeric + fi } post_upgrade() { - post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} + post_install } post_remove() { - usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - update-desktop-database -q + post_install } -- cgit v1.2.3-54-g00ecf