shared-mime-info: Bring back db update in postint for 0.20 and 0.22
authorStefan Schmidt <stefan@datenfreihafen.org>
Thu, 6 Nov 2008 23:36:12 +0000 (23:36 +0000)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 6 Nov 2008 23:57:30 +0000 (00:57 +0100)
0.51 builds the mime db on the host and does not need these postint.

packages/shared-mime-info/shared-mime-info_0.20.bb
packages/shared-mime-info/shared-mime-info_0.22.bb

index f24008e..3d2a614 100644 (file)
@@ -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
+}
index 6d3b760..f28dff2 100644 (file)
@@ -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
+}