[oe] [meta-java][PATCH] move from bb.data.getVar(x, d, 1) to d.getVar(x, True)

Christopher Larson clarson at kergoth.com
Tue Nov 29 20:16:47 UTC 2016


On Tue, Nov 29, 2016 at 9:48 AM, Cody P Schafer <dev at codyps.com> wrote:

> bb.data.getVar was removed, need to use the modern mechanism.
>
> Signed-off-by: Cody P Schafer <dev at codyps.com>
> ---
>  classes/java-library.bbclass              |  4 ++--
>  recipes-core/icedtea/icedtea7-native.inc  |  2 +-
>  recipes-core/openjdk/openjdk-7-common.inc |  2 +-
>  recipes-core/openjdk/openjdk-8-common.inc | 10 +++++-----
>  recipes-core/openjdk/openjdk-common.inc   |  6 +++---
>  5 files changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
> index 144cd2f..58d5a40 100644
> --- a/classes/java-library.bbclass
> +++ b/classes/java-library.bbclass
> @@ -23,8 +23,8 @@ def java_package_name(d):
>    pre=""
>    post=""
>
> -  bpn = bb.data.getVar('BPN', d, 1)
> -  ml = bb.data.getVar('MLPREFIX', d, 1)
> +  bpn = d.getVar('BPN', True)
> +  ml = d.getVar('MLPREFIX', True)
>

If you’re working on master, even the ‘, True’ is no longer needed, FYI.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the Openembedded-devel mailing list