meta-oe: 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.

Signed-off-by: Akash Hadke <akash.hadke27@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
akash hadke
2025-01-10 16:39:04 +05:30
committed by Armin Kuster
parent 66ec168505
commit 198cf66134
4 changed files with 9 additions and 9 deletions
@@ -23,7 +23,7 @@ do_install() {
PACKAGE_ARCH = "${MACHINE_ARCH}"
python do_package:prepend() {
d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
}
B = "${WORKDIR}/${BPN}-${PV}"
@@ -65,5 +65,5 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
# Even though the libusbip is set to version 0.0.1, set the package version to match kernel
# e.g. usbip-tools-5.14.21-r0.qemux86_64.rpm for qemu package using kernel 5.14.21
python do_package:prepend() {
d.setVar('PKGV', d.getVar("KERNEL_VERSION", True).split("-")[0])
d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
}