summaryrefslogtreecommitdiff
path: root/community/root/root.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/root/root.install')
-rw-r--r--community/root/root.install26
1 files changed, 17 insertions, 9 deletions
diff --git a/community/root/root.install b/community/root/root.install
index 457af7314..afabb7aea 100644
--- a/community/root/root.install
+++ b/community/root/root.install
@@ -1,17 +1,25 @@
post_install() {
- if ! [ `grep '/usr/lib/root' etc/ld.so.conf` ]; then
- echo "/usr/lib/root" >> etc/ld.so.conf
- sbin/ldconfig -r .
- fi
-
update-desktop-database >/dev/null
update-mime-database /usr/share/mime >/dev/null
+
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
pre_remove() {
- cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot
- mv /tmp/.pacroot etc/ld.so.conf
- chmod 644 etc/ld.so.conf
- sbin/ldconfig -r .
+ # leave for pre 5.30.03-3
+ if [[ $(vercmp $1 5.30.03-3) == -1 ]]; then
+ cat etc/ld.so.conf | grep -v '/usr/lib/root' >/tmp/.pacroot
+ mv /tmp/.pacroot etc/ld.so.conf
+ chmod 644 etc/ld.so.conf
+ sbin/ldconfig -r .
+ fi
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}