diff options
Diffstat (limited to 'meta/classes/fontcache.bbclass')
| -rw-r--r-- | meta/classes/fontcache.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index 8ebdfc4f5c..d047a79aa6 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
| @@ -30,26 +30,26 @@ fi | |||
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | python () { | 32 | python () { |
| 33 | font_pkgs = d.getVar('FONT_PACKAGES', True).split() | 33 | font_pkgs = d.getVar('FONT_PACKAGES').split() |
| 34 | deps = d.getVar("FONT_EXTRA_RDEPENDS", True) | 34 | deps = d.getVar("FONT_EXTRA_RDEPENDS") |
| 35 | 35 | ||
| 36 | for pkg in font_pkgs: | 36 | for pkg in font_pkgs: |
| 37 | if deps: d.appendVar('RDEPENDS_' + pkg, ' '+deps) | 37 | if deps: d.appendVar('RDEPENDS_' + pkg, ' '+deps) |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | python add_fontcache_postinsts() { | 40 | python add_fontcache_postinsts() { |
| 41 | for pkg in d.getVar('FONT_PACKAGES', True).split(): | 41 | for pkg in d.getVar('FONT_PACKAGES').split(): |
| 42 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) | 42 | bb.note("adding fonts postinst and postrm scripts to %s" % pkg) |
| 43 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) | 43 | postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') |
| 44 | if not postinst: | 44 | if not postinst: |
| 45 | postinst = '#!/bin/sh\n' | 45 | postinst = '#!/bin/sh\n' |
| 46 | postinst += d.getVar('fontcache_common', True) | 46 | postinst += d.getVar('fontcache_common') |
| 47 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 47 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
| 48 | 48 | ||
| 49 | postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True) | 49 | postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') |
| 50 | if not postrm: | 50 | if not postrm: |
| 51 | postrm = '#!/bin/sh\n' | 51 | postrm = '#!/bin/sh\n' |
| 52 | postrm += d.getVar('fontcache_common', True) | 52 | postrm += d.getVar('fontcache_common') |
| 53 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 53 | d.setVar('pkg_postrm_%s' % pkg, postrm) |
| 54 | } | 54 | } |
| 55 | 55 | ||
