summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 00:05:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 00:12:34 +0000
commitaeb189ac8bc6625ec936fd69f18974ebde758946 (patch)
tree7105d7bd95f31e7b2eabe12a9e69159fcb99d599
parent252b69c9f2abe3258366c540f56b156ed63e5437 (diff)
downloadopenembedded-core-contrib-aeb189ac8bc6625ec936fd69f18974ebde758946.tar.gz
openembedded-core-contrib-aeb189ac8bc6625ec936fd69f18974ebde758946.tar.bz2
openembedded-core-contrib-aeb189ac8bc6625ec936fd69f18974ebde758946.zip
bitbake.conf: Cleanup deprecated function usage
This function was moved in bitbake a long time ago, use the preferred version to avoid a Deprecation warning. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/bitbake.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index dcf2007883..6480062354 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -199,9 +199,9 @@ ASSUME_PROVIDED = "\
# Package default variables.
##################################################################
-PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
-PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
-PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}"
+PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
+PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
+PR = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}"
PE = ""
PF = "${PN}-${EXTENDPE}${PV}-${PR}"
EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}"