summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-01-17 22:29:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:24:38 +0000
commitc8e3a0a4423e26290fb34823dcdbb2c04f3391b7 (patch)
treea740b4c08cc4fb949e6f7e9691cfe83937a783cb /scripts
parent3d3f59d2c8315ffd34ab9867870642fec4fe1c2b (diff)
downloadpoky-c8e3a0a4423e26290fb34823dcdbb2c04f3391b7.tar.gz
mime.bbclass: rework
* add a short descriptions of class' use case * remove checks for update-mime-database - it can be considered available: * at build time by PACKAGE_WRITE_DEPS * at package upgrade by RDEPENDS chain pkg -> shared-mime-info-data -> shared-mime-info * simplify (accelerate?) xml file extension detection * run update-mime-database once only at image creation to avoid expensive redundant operations * allow shared-mime-info to inherit mime.bbclass by avoiding circular dependencies (From OE-Core rev: 6467b7b98c9a55e27d1ab9f253ec48da2a722e77) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/postinst-intercepts/update_mime_database9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_mime_database b/scripts/postinst-intercepts/update_mime_database
new file mode 100644
index 0000000000..582d1e162c
--- /dev/null
+++ b/scripts/postinst-intercepts/update_mime_database
@@ -0,0 +1,9 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: MIT
4#
5# Post-install intercept for mime.bbclass
6
7echo "Updating MIME database... this may take a while."
8update-mime-database $D${mimedir}
9