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-icon-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-icon-cache.bbclass')
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 0f1052b08c..c5d8d7cfed 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass | |||
@@ -35,11 +35,11 @@ fi | |||
35 | } | 35 | } |
36 | 36 | ||
37 | python populate_packages_append () { | 37 | python populate_packages_append () { |
38 | packages = d.getVar('PACKAGES', True).split() | 38 | packages = d.getVar('PACKAGES').split() |
39 | pkgdest = d.getVar('PKGDEST', True) | 39 | pkgdest = d.getVar('PKGDEST') |
40 | 40 | ||
41 | for pkg in packages: | 41 | for pkg in packages: |
42 | icon_dir = '%s/%s/%s/icons' % (pkgdest, pkg, d.getVar('datadir', True)) | 42 | icon_dir = '%s/%s/%s/icons' % (pkgdest, pkg, d.getVar('datadir')) |
43 | if not os.path.exists(icon_dir): | 43 | if not os.path.exists(icon_dir): |
44 | continue | 44 | continue |
45 | 45 | ||
@@ -49,16 +49,16 @@ python populate_packages_append () { | |||
49 | 49 | ||
50 | bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg) | 50 | bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg) |
51 | 51 | ||
52 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) | 52 | postinst = d.getVar('pkg_postinst_%s' % pkg) |
53 | if not postinst: | 53 | if not postinst: |
54 | postinst = '#!/bin/sh\n' | 54 | postinst = '#!/bin/sh\n' |
55 | postinst += d.getVar('gtk_icon_cache_postinst', True) | 55 | postinst += d.getVar('gtk_icon_cache_postinst') |
56 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 56 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
57 | 57 | ||
58 | postrm = d.getVar('pkg_postrm_%s' % pkg, True) | 58 | postrm = d.getVar('pkg_postrm_%s' % pkg) |
59 | if not postrm: | 59 | if not postrm: |
60 | postrm = '#!/bin/sh\n' | 60 | postrm = '#!/bin/sh\n' |
61 | postrm += d.getVar('gtk_icon_cache_postrm', True) | 61 | postrm += d.getVar('gtk_icon_cache_postrm') |
62 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 62 | d.setVar('pkg_postrm_%s' % pkg, postrm) |
63 | } | 63 | } |
64 | 64 | ||