diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/mime.bbclass | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-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.bbclass | 12 |
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 | |||
39 | fi | 39 | fi |
40 | } | 40 | } |
41 | 41 | ||
42 | python populate_packages_append () { | 42 | python 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 | } |