summaryrefslogtreecommitdiffstats
path: root/abs/core/shared-mime-info/shared-mime-info.install
diff options
context:
space:
mode:
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
+}