summaryrefslogtreecommitdiffstats
path: root/meta/classes/mime.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/mime.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/mime.bbclass')
-rw-r--r--meta/classes/mime.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/mime.bbclass b/meta/classes/mime.bbclass
index bb99bc35cb..8d176a884e 100644
--- a/meta/classes/mime.bbclass
+++ b/meta/classes/mime.bbclass
@@ -39,7 +39,7 @@ fi
39fi 39fi
40} 40}
41 41
42python populate_packages_append () { 42python populate_packages:append () {
43 packages = d.getVar('PACKAGES').split() 43 packages = d.getVar('PACKAGES').split()
44 pkgdest = d.getVar('PKGDEST') 44 pkgdest = d.getVar('PKGDEST')
45 mimedir = d.getVar('MIMEDIR') 45 mimedir = d.getVar('MIMEDIR')
@@ -54,17 +54,17 @@ python populate_packages_append () {
54 break 54 break
55 if mimes_types_found: 55 if mimes_types_found:
56 bb.note("adding mime postinst and postrm scripts to %s" % pkg) 56 bb.note("adding mime postinst and postrm scripts to %s" % pkg)
57 postinst = d.getVar('pkg_postinst_%s' % pkg) 57 postinst = d.getVar('pkg_postinst:%s' % pkg)
58 if not postinst: 58 if not postinst:
59 postinst = '#!/bin/sh\n' 59 postinst = '#!/bin/sh\n'
60 postinst += d.getVar('mime_postinst') 60 postinst += d.getVar('mime_postinst')
61 d.setVar('pkg_postinst_%s' % pkg, postinst) 61 d.setVar('pkg_postinst:%s' % pkg, postinst)
62 postrm = d.getVar('pkg_postrm_%s' % pkg) 62 postrm = d.getVar('pkg_postrm:%s' % pkg)
63 if not postrm: 63 if not postrm:
64 postrm = '#!/bin/sh\n' 64 postrm = '#!/bin/sh\n'
65 postrm += d.getVar('mime_postrm') 65 postrm += d.getVar('mime_postrm')
66 d.setVar('pkg_postrm_%s' % pkg, postrm) 66 d.setVar('pkg_postrm:%s' % pkg, postrm)
67 if pkg != 'shared-mime-info-data': 67 if pkg != 'shared-mime-info-data':
68 bb.note("adding shared-mime-info-data dependency to %s" % pkg) 68 bb.note("adding shared-mime-info-data dependency to %s" % pkg)
69 d.appendVar('RDEPENDS_' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data") 69 d.appendVar('RDEPENDS:' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data")
70} 70}