]> code.ossystems Code Review - openembedded-core.git/commit
mime.bbclass: rework
authorAndreas Müller <schnitzeltony@gmail.com>
Fri, 17 Jan 2020 21:29:02 +0000 (22:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Jan 2020 13:24:31 +0000 (13:24 +0000)
commit6467b7b98c9a55e27d1ab9f253ec48da2a722e77
treef735820f69c934710de2542aabe4318ae76d29d8
parent09ef7f8e4b9742b17a0bf7a48970ece2298eaeba
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

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/mime.bbclass
scripts/postinst-intercepts/update_mime_database [new file with mode: 0644]