DRAFT ros_component.bbclass: Use ??= when assigning ROS_BPN, ROS_SPN, ROS_SP

This commit is contained in:
Herb Kuta 2019-04-29 18:40:14 -07:00
parent f9097a0119
commit b2cde1d0d3
1 changed files with 3 additions and 3 deletions

View File

@ -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.)