From aeb189ac8bc6625ec936fd69f18974ebde758946 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 7 Dec 2018 00:05:26 +0000 Subject: 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 --- meta/conf/bitbake.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta') 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]}" -- cgit 1.2.3-korg