summaryrefslogtreecommitdiffstats
path: root/abs/core/gtk2/gtk2.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/gtk2/gtk2.install')
-rw-r--r--abs/core/gtk2/gtk2.install11
1 files changed, 6 insertions, 5 deletions
diff --git a/abs/core/gtk2/gtk2.install b/abs/core/gtk2/gtk2.install
index a988c64..f14e648 100644
--- a/abs/core/gtk2/gtk2.install
+++ b/abs/core/gtk2/gtk2.install
@@ -1,16 +1,17 @@
post_install() {
- gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+ /usr/bin/gtk-query-immodules-2.0 --update-cache
}
pre_upgrade() {
- pre_remove
+ if (( $(vercmp $2 2.24.20) < 0 )); then
+ rm -f /etc/gtk-2.0/gtk.immodules
+ fi
}
post_upgrade() {
- post_install
+ post_install
}
pre_remove() {
- rm -f /etc/gtk-2.0/gtk.immodules &>/dev/null
- rm -f /etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null
+ rm -f /usr/lib/gtk-2.0/2.10.0/immodules.cache
}