summaryrefslogtreecommitdiff
path: root/extra/gnome-session/gnome-session.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnome-session/gnome-session.install')
-rw-r--r--extra/gnome-session/gnome-session.install16
1 files changed, 6 insertions, 10 deletions
diff --git a/extra/gnome-session/gnome-session.install b/extra/gnome-session/gnome-session.install
index 9fc55e1a5..74cf4ed22 100644
--- a/extra/gnome-session/gnome-session.install
+++ b/extra/gnome-session/gnome-session.install
@@ -1,22 +1,18 @@
-pkgname=gnome-session
-
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
}
pre_upgrade() {
- pre_remove $1
+ if (( $(vercmp $2 2.91.91.3-3) < 0 )); then
+ usr/sbin/gconfpkg --uninstall gnome-session
+ 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
}