summaryrefslogtreecommitdiffstats
path: root/meta/classes/fontcache.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/fontcache.bbclass')
-rw-r--r--meta/classes/fontcache.bbclass10
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
41python add_fontcache_postinsts() { 41python 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
57PACKAGEFUNCS =+ "add_fontcache_postinsts" 57PACKAGEFUNCS =+ "add_fontcache_postinsts"