DRAFT ros_component.bbclass: Use ??= when assigning ROS_BPN, ROS_SPN, ROS_SP
This commit is contained in:
parent
f9097a0119
commit
b2cde1d0d3
|
@ -6,9 +6,9 @@ export ROS_DISTRO
|
||||||
export ROS_VERSION
|
export ROS_VERSION
|
||||||
export ROS_PYTHON_VERSION
|
export ROS_PYTHON_VERSION
|
||||||
|
|
||||||
ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}"
|
ROS_BPN ??= "${@d.getVar('BPN', True).replace('-', '_')}"
|
||||||
ROS_SPN ?= "${ROS_BPN}"
|
ROS_SPN ??= "${ROS_BPN}"
|
||||||
ROS_SP = "${ROS_SPN}-${PV}"
|
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
|
# 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.)
|
# we get here.)
|
||||||
|
|
Loading…
Reference in New Issue