From 07a8f31cff6df541fbd811f52ce2d7dee2856724 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Mon, 29 Apr 2019 18:40:14 -0700 Subject: [PATCH] DRAFT ros_component.bbclass: Use ??= when assigning ROS_BPN, ROS_SPN, ROS_SP --- classes/ros_component.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/ros_component.bbclass b/classes/ros_component.bbclass index 51d9c28..e207d9f 100644 --- a/classes/ros_component.bbclass +++ b/classes/ros_component.bbclass @@ -6,9 +6,9 @@ export ROS_DISTRO export ROS_VERSION export ROS_PYTHON_VERSION -ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}" -ROS_SPN ?= "${ROS_BPN}" -ROS_SP = "${ROS_SPN}-${PV}" +ROS_BPN ??= "${@d.getVar('BPN', True).replace('-', '_')}" +ROS_SPN ??= "${ROS_BPN}" +ROS_SP ??= "${ROS_SPN}-${PV}" # Ensure that PYTHON_PN is always set. (ROS_PYTHON_VERSION is set in generated-ros-distro.inc, ie, it will never be unset when # we get here.)