From c8e3a0a4423e26290fb34823dcdbb2c04f3391b7 Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Fri, 17 Jan 2020 22:29:02 +0100 Subject: mime.bbclass: rework MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Signed-off-by: Richard Purdie --- scripts/postinst-intercepts/update_mime_database | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/postinst-intercepts/update_mime_database (limited to 'scripts') 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 @@ +#!/bin/sh +# +# SPDX-License-Identifier: MIT +# +# Post-install intercept for mime.bbclass + +echo "Updating MIME database... this may take a while." +update-mime-database $D${mimedir} + -- cgit v1.2.3-54-g00ecf