diff options
author | root <root@rshg054.dnsready.net> | 2013-05-23 01:28:34 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-05-23 01:28:34 -0700 |
commit | e0c1bfae73539aac5627d73dd70a299d274a0c10 (patch) | |
tree | c18288b635e64dfbcd616503eb079a951a43fafc /libre/mcomix-libre/mcomix.install | |
parent | bdf2189826c1931878cedc2262f67f6fd3c0ef15 (diff) |
Thu May 23 01:28:33 PDT 2013
Diffstat (limited to 'libre/mcomix-libre/mcomix.install')
-rw-r--r-- | libre/mcomix-libre/mcomix.install | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libre/mcomix-libre/mcomix.install b/libre/mcomix-libre/mcomix.install index 2d3c6c3e3..c33c1d5a1 100644 --- a/libre/mcomix-libre/mcomix.install +++ b/libre/mcomix-libre/mcomix.install @@ -1,13 +1,12 @@ pkgname=mcomix post_install() { - if [ -f usr/bin/xdg-icon-resource ]; then - xdg-icon-resource forceupdate - fi if [ -f usr/sbin/gconfpkg ]; then - usr/sbin/gconfpkg --install ${pkgname} + usr/sbin/gconfpkg --install ${pkgname} &> /dev/null fi + xdg-icon-resource forceupdate --theme hicolor &> /dev/null update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null } pre_upgrade() { @@ -20,13 +19,12 @@ post_upgrade() { pre_remove() { if [ -f usr/sbin/gconfpkg ]; then - usr/sbin/gconfpkg --uninstall ${pkgname} + usr/sbin/gconfpkg --uninstall ${pkgname} &> /dev/null fi } post_remove() { - if [ -f usr/bin/xdg-icon-resource ]; then - xdg-icon-resource forceupdate - fi + xdg-icon-resource forceupdate --theme hicolor &> /dev/null update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null } |