summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2008-11-06 23:36:12 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2008-11-07 00:57:30 +0100
commit80cf7dcb3b02ae6d5f94818e0663aae58f989e2e (patch)
tree9038032d3b04ce595556bc9bd7f4616e4d9b0570
parent00ea9a44ec8013f577e2d998db12c5ba1032669a (diff)
shared-mime-info: Bring back db update in postint for 0.20 and 0.22
0.51 builds the mime db on the host and does not need these postint.
-rw-r--r--packages/shared-mime-info/shared-mime-info_0.20.bb9
-rw-r--r--packages/shared-mime-info/shared-mime-info_0.22.bb10
2 files changed, 18 insertions, 1 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
+}
diff --git a/packages/shared-mime-info/shared-mime-info_0.22.bb b/packages/shared-mime-info/shared-mime-info_0.22.bb
index 6d3b760390..f28dff2ca2 100644
--- a/packages/shared-mime-info/shared-mime-info_0.22.bb
+++ b/packages/shared-mime-info/shared-mime-info_0.22.bb
@@ -1,3 +1,11 @@
require shared-mime-info.inc
-PR = "r1"
+PR = "r2"
+
+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
+}