diff options
author | root <root@rshg047.dnsready.net> | 2011-05-01 22:33:26 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-01 22:33:26 +0000 |
commit | 40f0b1c7106cc1fed13f14e80f083ecd69c416f5 (patch) | |
tree | faeb03af48db54c663f74f3f188b9c1c56ca6a0b /extra/gnome-power-manager/gnome-power-manager.install | |
parent | c173ac862828a54925737fc1d90ede1dd09a312c (diff) |
Sun May 1 22:33:26 UTC 2011
Diffstat (limited to 'extra/gnome-power-manager/gnome-power-manager.install')
-rw-r--r-- | extra/gnome-power-manager/gnome-power-manager.install | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/extra/gnome-power-manager/gnome-power-manager.install b/extra/gnome-power-manager/gnome-power-manager.install index ee19ac94d..4666938db 100644 --- a/extra/gnome-power-manager/gnome-power-manager.install +++ b/extra/gnome-power-manager/gnome-power-manager.install @@ -1,22 +1,19 @@ -pkgname=gnome-power-manager - post_install() { - usr/sbin/gconfpkg --install ${pkgname} + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + gtk-update-icon-cache -q -t -f usr/share/icons/gnome } pre_upgrade() { -pre_remove $1 + if (( $(vercmp $2 2.91.92) < 0 )); then + usr/sbin/gconfpkg --uninstall gnome-power-manager + fi } post_upgrade() { -post_install $1 -} - -pre_remove() { - usr/sbin/gconfpkg --uninstall ${pkgname} + post_install } post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + post_install } |