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/gtk-immodules-cache.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/gtk-immodules-cache.bbclass')
-rw-r--r-- | meta/classes/gtk-immodules-cache.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/gtk-immodules-cache.bbclass b/meta/classes/gtk-immodules-cache.bbclass index ebbc9dea89..baea95959b 100644 --- a/meta/classes/gtk-immodules-cache.bbclass +++ b/meta/classes/gtk-immodules-cache.bbclass | |||
@@ -61,21 +61,21 @@ fi | |||
61 | } | 61 | } |
62 | 62 | ||
63 | python populate_packages_append () { | 63 | python populate_packages_append () { |
64 | gtkimmodules_pkgs = d.getVar('GTKIMMODULES_PACKAGES', True).split() | 64 | gtkimmodules_pkgs = d.getVar('GTKIMMODULES_PACKAGES').split() |
65 | 65 | ||
66 | for pkg in gtkimmodules_pkgs: | 66 | for pkg in gtkimmodules_pkgs: |
67 | bb.note("adding gtk-immodule-cache postinst and postrm scripts to %s" % pkg) | 67 | bb.note("adding gtk-immodule-cache postinst and postrm scripts to %s" % pkg) |
68 | 68 | ||
69 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 69 | postinst = d.getVar('pkg_postinst_%s' % pkg) |
70 | if not postinst: | 70 | if not postinst: |
71 | postinst = '#!/bin/sh\n' | 71 | postinst = '#!/bin/sh\n' |
72 | postinst += d.getVar('gtk_immodule_cache_postinst', True) | 72 | postinst += d.getVar('gtk_immodule_cache_postinst') |
73 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 73 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
74 | 74 | ||
75 | postrm = d.getVar('pkg_postrm_%s' % pkg, True) | 75 | postrm = d.getVar('pkg_postrm_%s' % pkg) |
76 | if not postrm: | 76 | if not postrm: |
77 | postrm = '#!/bin/sh\n' | 77 | postrm = '#!/bin/sh\n' |
78 | postrm += d.getVar('gtk_immodule_cache_postrm', True) | 78 | postrm += d.getVar('gtk_immodule_cache_postrm') |
79 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 79 | d.setVar('pkg_postrm_%s' % pkg, postrm) |
80 | } | 80 | } |
81 | 81 | ||