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/fontcache.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/fontcache.bbclass')
-rw-r--r-- | meta/classes/fontcache.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index 624a420a0d..442bfc7392 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
@@ -35,23 +35,23 @@ python () { | |||
35 | deps = d.getVar("FONT_EXTRA_RDEPENDS") | 35 | deps = d.getVar("FONT_EXTRA_RDEPENDS") |
36 | 36 | ||
37 | for pkg in font_pkgs: | 37 | for pkg in font_pkgs: |
38 | if deps: d.appendVar('RDEPENDS_' + pkg, ' '+deps) | 38 | if deps: d.appendVar('RDEPENDS:' + pkg, ' '+deps) |
39 | } | 39 | } |
40 | 40 | ||
41 | python add_fontcache_postinsts() { | 41 | python add_fontcache_postinsts() { |
42 | for pkg in d.getVar('FONT_PACKAGES').split(): | 42 | for pkg in d.getVar('FONT_PACKAGES').split(): |
43 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) | 43 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) |
44 | postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') | 44 | postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst') |
45 | if not postinst: | 45 | if not postinst: |
46 | postinst = '#!/bin/sh\n' | 46 | postinst = '#!/bin/sh\n' |
47 | postinst += d.getVar('fontcache_common') | 47 | postinst += d.getVar('fontcache_common') |
48 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 48 | d.setVar('pkg_postinst:%s' % pkg, postinst) |
49 | 49 | ||
50 | postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') | 50 | postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm') |
51 | if not postrm: | 51 | if not postrm: |
52 | postrm = '#!/bin/sh\n' | 52 | postrm = '#!/bin/sh\n' |
53 | postrm += d.getVar('fontcache_common') | 53 | postrm += d.getVar('fontcache_common') |
54 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 54 | d.setVar('pkg_postrm:%s' % pkg, postrm) |
55 | } | 55 | } |
56 | 56 | ||
57 | PACKAGEFUNCS =+ "add_fontcache_postinsts" | 57 | PACKAGEFUNCS =+ "add_fontcache_postinsts" |