diff options
| author | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-14 21:13:04 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-16 10:23:23 +0000 |
| commit | c4e2c59088765d1f1de7ec57cde91980f887c2ff (patch) | |
| tree | a2fda8ac5916fb59a711e9220c2177008cca9347 /meta/classes/gconf.bbclass | |
| parent | d5e67725ac11e3296cad104470931ffa16824b90 (diff) | |
| download | poky-c4e2c59088765d1f1de7ec57cde91980f887c2ff.tar.gz | |
meta: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
(From OE-Core rev: 7c552996597faaee2fbee185b250c0ee30ea3b5f)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gconf.bbclass')
| -rw-r--r-- | meta/classes/gconf.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass index d7afa7282f..d07beadc95 100644 --- a/meta/classes/gconf.bbclass +++ b/meta/classes/gconf.bbclass | |||
| @@ -42,8 +42,8 @@ done | |||
| 42 | 42 | ||
| 43 | python populate_packages_append () { | 43 | python populate_packages_append () { |
| 44 | import re | 44 | import re |
| 45 | packages = d.getVar('PACKAGES', True).split() | 45 | packages = d.getVar('PACKAGES').split() |
| 46 | pkgdest = d.getVar('PKGDEST', True) | 46 | pkgdest = d.getVar('PKGDEST') |
| 47 | 47 | ||
| 48 | for pkg in packages: | 48 | for pkg in packages: |
| 49 | schema_dir = '%s/%s/etc/gconf/schemas' % (pkgdest, pkg) | 49 | schema_dir = '%s/%s/etc/gconf/schemas' % (pkgdest, pkg) |
| @@ -56,15 +56,15 @@ python populate_packages_append () { | |||
| 56 | if schemas != []: | 56 | if schemas != []: |
| 57 | bb.note("adding gconf postinst and prerm scripts to %s" % pkg) | 57 | bb.note("adding gconf postinst and prerm scripts to %s" % pkg) |
| 58 | d.setVar('SCHEMA_FILES', " ".join(schemas)) | 58 | d.setVar('SCHEMA_FILES', " ".join(schemas)) |
| 59 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 59 | postinst = d.getVar('pkg_postinst_%s' % pkg) |
| 60 | if not postinst: | 60 | if not postinst: |
| 61 | postinst = '#!/bin/sh\n' | 61 | postinst = '#!/bin/sh\n' |
| 62 | postinst += d.getVar('gconf_postinst', True) | 62 | postinst += d.getVar('gconf_postinst') |
| 63 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 63 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
| 64 | prerm = d.getVar('pkg_prerm_%s' % pkg, True) | 64 | prerm = d.getVar('pkg_prerm_%s' % pkg) |
| 65 | if not prerm: | 65 | if not prerm: |
| 66 | prerm = '#!/bin/sh\n' | 66 | prerm = '#!/bin/sh\n' |
| 67 | prerm += d.getVar('gconf_prerm', True) | 67 | prerm += d.getVar('gconf_prerm') |
| 68 | d.setVar('pkg_prerm_%s' % pkg, prerm) | 68 | d.setVar('pkg_prerm_%s' % pkg, prerm) |
| 69 | d.appendVar("RDEPENDS_%s" % pkg, ' ' + d.getVar('MLPREFIX', False) + 'gconf') | 69 | d.appendVar("RDEPENDS_%s" % pkg, ' ' + d.getVar('MLPREFIX', False) + 'gconf') |
| 70 | } | 70 | } |
