mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
3d3f59d2c8
commit
c8e3a0a442
9
scripts/postinst-intercepts/update_mime_database
Normal file
9
scripts/postinst-intercepts/update_mime_database
Normal file
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user