diff options
Diffstat (limited to 'extra/gnumeric/gnumeric.install')
-rw-r--r-- | extra/gnumeric/gnumeric.install | 17 |
1 files changed, 5 insertions, 12 deletions
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 } |