diff options
author | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-11-06 23:36:12 +0000 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2008-11-07 00:57:30 +0100 |
commit | 80cf7dcb3b02ae6d5f94818e0663aae58f989e2e (patch) | |
tree | 9038032d3b04ce595556bc9bd7f4616e4d9b0570 | |
parent | 00ea9a44ec8013f577e2d998db12c5ba1032669a (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.bb | 9 | ||||
-rw-r--r-- | packages/shared-mime-info/shared-mime-info_0.22.bb | 10 |
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 +} |