summaryrefslogtreecommitdiffstats
path: root/abs/core/shared-mime-info/shared-mime-info.install
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-30 01:53:31 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-30 01:53:31 (GMT)
commitd590657014e9074017b9cbe854e488f7845824fe (patch)
tree0cf643d2ce79f04281755a3a96f37cb76b58f54e /abs/core/shared-mime-info/shared-mime-info.install
parent743cdc9a13fc5e4fc04c0eb8e6c9933f08395edf (diff)
downloadlinhes_pkgbuild-d590657014e9074017b9cbe854e488f7845824fe.zip
linhes_pkgbuild-d590657014e9074017b9cbe854e488f7845824fe.tar.gz
linhes_pkgbuild-d590657014e9074017b9cbe854e488f7845824fe.tar.bz2
shared-mime-info: upgrade
Diffstat (limited to 'abs/core/shared-mime-info/shared-mime-info.install')
-rw-r--r--abs/core/shared-mime-info/shared-mime-info.install15
1 files changed, 9 insertions, 6 deletions
diff --git a/abs/core/shared-mime-info/shared-mime-info.install b/abs/core/shared-mime-info/shared-mime-info.install
index 6b06094..fac0c1c 100644
--- a/abs/core/shared-mime-info/shared-mime-info.install
+++ b/abs/core/shared-mime-info/shared-mime-info.install
@@ -1,12 +1,15 @@
post_install() {
- update-mime-database /usr/share/mime > /dev/null 2>&1
+ update-mime-database usr/share/mime > /dev/null 2>&1
}
post_upgrade() {
- post_install $1
+ post_install
}
-op=$1
-shift
-
-$op $*
+post_remove() {
+ if [ -d usr/share/mime ]; then
+ rm -f usr/share/mime/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
+ rm -rf usr/share/mime/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
+ rmdir --ignore-fail-on-non-empty usr/share/mime
+ fi
+}