Skip to content

Commit

Permalink
Skip building packages w/o package.xml or setup.py
Browse files Browse the repository at this point in the history
For some reason, colcon finds jsk packages, which are no packages.
  • Loading branch information
rhaschke committed Oct 17, 2024
1 parent a334cba commit 2609ea0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,11 @@ function build_source {
local exit_code=0
if [ -f "${PKG_FOLDERS[$idx]}/package.xml" ]; then
build_pkg "${PKG_NAMES[$idx]}" "${PKG_FOLDERS[$idx]}" || exit_code=$?
else
elif [ -f "${PKG_FOLDERS[$idx]}/setup.py" ]; then
build_python_pkg "${PKG_NAMES[$idx]}" "${PKG_FOLDERS[$idx]}" || exit_code=$?
else
ici_warning "No package.xml or setup.py found"
exit_code=0
fi

if [ "$exit_code" != 0 ] ; then
Expand Down

0 comments on commit 2609ea0

Please sign in to comment.