diff options
Diffstat (limited to 'meta/classes/gsettings.bbclass')
-rw-r--r-- | meta/classes/gsettings.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/gsettings.bbclass b/meta/classes/gsettings.bbclass index 33afc96a9c..3fa5bd40b3 100644 --- a/meta/classes/gsettings.bbclass +++ b/meta/classes/gsettings.bbclass | |||
@@ -13,30 +13,30 @@ python __anonymous() { | |||
13 | pkg = d.getVar("GSETTINGS_PACKAGE") | 13 | pkg = d.getVar("GSETTINGS_PACKAGE") |
14 | if pkg: | 14 | if pkg: |
15 | d.appendVar("PACKAGE_WRITE_DEPS", " glib-2.0-native") | 15 | d.appendVar("PACKAGE_WRITE_DEPS", " glib-2.0-native") |
16 | d.appendVar("RDEPENDS_" + pkg, " ${MLPREFIX}glib-2.0-utils") | 16 | d.appendVar("RDEPENDS:" + pkg, " ${MLPREFIX}glib-2.0-utils") |
17 | d.appendVar("FILES_" + pkg, " ${datadir}/glib-2.0/schemas") | 17 | d.appendVar("FILES:" + pkg, " ${datadir}/glib-2.0/schemas") |
18 | } | 18 | } |
19 | 19 | ||
20 | gsettings_postinstrm () { | 20 | gsettings_postinstrm () { |
21 | glib-compile-schemas $D${datadir}/glib-2.0/schemas | 21 | glib-compile-schemas $D${datadir}/glib-2.0/schemas |
22 | } | 22 | } |
23 | 23 | ||
24 | python populate_packages_append () { | 24 | python populate_packages:append () { |
25 | pkg = d.getVar('GSETTINGS_PACKAGE') | 25 | pkg = d.getVar('GSETTINGS_PACKAGE') |
26 | if pkg: | 26 | if pkg: |
27 | bb.note("adding gsettings postinst scripts to %s" % pkg) | 27 | bb.note("adding gsettings postinst scripts to %s" % pkg) |
28 | 28 | ||
29 | postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') | 29 | postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst') |
30 | if not postinst: | 30 | if not postinst: |
31 | postinst = '#!/bin/sh\n' | 31 | postinst = '#!/bin/sh\n' |
32 | postinst += d.getVar('gsettings_postinstrm') | 32 | postinst += d.getVar('gsettings_postinstrm') |
33 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 33 | d.setVar('pkg_postinst:%s' % pkg, postinst) |
34 | 34 | ||
35 | bb.note("adding gsettings postrm scripts to %s" % pkg) | 35 | bb.note("adding gsettings postrm scripts to %s" % pkg) |
36 | 36 | ||
37 | postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') | 37 | postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm') |
38 | if not postrm: | 38 | if not postrm: |
39 | postrm = '#!/bin/sh\n' | 39 | postrm = '#!/bin/sh\n' |
40 | postrm += d.getVar('gsettings_postinstrm') | 40 | postrm += d.getVar('gsettings_postinstrm') |
41 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 41 | d.setVar('pkg_postrm:%s' % pkg, postrm) |
42 | } | 42 | } |