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/pixbufcache.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/pixbufcache.bbclass')
| -rw-r--r-- | meta/classes/pixbufcache.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/pixbufcache.bbclass b/meta/classes/pixbufcache.bbclass index 3f48a0f344..63bf079cf1 100644 --- a/meta/classes/pixbufcache.bbclass +++ b/meta/classes/pixbufcache.bbclass | |||
| @@ -28,20 +28,20 @@ fi | |||
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | python populate_packages_append() { | 30 | python populate_packages_append() { |
| 31 | pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES', True).split() | 31 | pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split() |
| 32 | 32 | ||
| 33 | for pkg in pixbuf_pkgs: | 33 | for pkg in pixbuf_pkgs: |
| 34 | bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg) | 34 | bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg) |
| 35 | postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) | 35 | postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst') |
| 36 | if not postinst: | 36 | if not postinst: |
| 37 | postinst = '#!/bin/sh\n' | 37 | postinst = '#!/bin/sh\n' |
| 38 | postinst += d.getVar('pixbufcache_common', True) | 38 | postinst += d.getVar('pixbufcache_common') |
| 39 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 39 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
| 40 | 40 | ||
| 41 | postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True) | 41 | postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm') |
| 42 | if not postrm: | 42 | if not postrm: |
| 43 | postrm = '#!/bin/sh\n' | 43 | postrm = '#!/bin/sh\n' |
| 44 | postrm += d.getVar('pixbufcache_common', True) | 44 | postrm += d.getVar('pixbufcache_common') |
| 45 | d.setVar('pkg_postrm_%s' % pkg, postrm) | 45 | d.setVar('pkg_postrm_%s' % pkg, postrm) |
| 46 | } | 46 | } |
| 47 | 47 | ||
