summaryrefslogtreecommitdiff
path: root/packages/shared-mime-info/shared-mime-info_0.20.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared-mime-info/shared-mime-info_0.20.bb')
-rw-r--r--packages/shared-mime-info/shared-mime-info_0.20.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/shared-mime-info/shared-mime-info_0.20.bb b/packages/shared-mime-info/shared-mime-info_0.20.bb
index f24008ec13..3d2a614bd1 100644
--- a/packages/shared-mime-info/shared-mime-info_0.20.bb
+++ b/packages/shared-mime-info/shared-mime-info_0.20.bb
@@ -1,2 +1,11 @@
require shared-mime-info.inc
+PR = "r1"
+
+pkg_postinst () {
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+ echo "Updating MIME database... this may take a while."
+ ${bindir}/update-mime-database ${datadir}/mime
+}