diff options
author | root <root@rshg054.dnsready.net> | 2011-11-07 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-07 23:14:55 +0000 |
commit | effb26c3b1f00bf8bea4e2562f07f9a06eb67606 (patch) | |
tree | 428924ac7d0c871e4b7ca1fed9e221e5ef7b8081 /community/root/root.install | |
parent | a4d309341dbcd3c28ee68e818c1d5ef54114adf8 (diff) |
Mon Nov 7 23:14:55 UTC 2011
Diffstat (limited to 'community/root/root.install')
-rw-r--r-- | community/root/root.install | 26 |
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 } |