summaryrefslogtreecommitdiffstats
path: root/meta/classes/gsettings.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/gsettings.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-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/gsettings.bbclass')
-rw-r--r--meta/classes/gsettings.bbclass14
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
20gsettings_postinstrm () { 20gsettings_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
24python populate_packages_append () { 24python 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}