Skip to content

Commit

Permalink
Always consider .dsv files, even when no shell specific script exists (
Browse files Browse the repository at this point in the history
…#147)

Copy of colcon/colcon-core@3697164

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey authored Apr 28, 2024
1 parent 40fee90 commit 01592eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ament_package/template/prefix_level/_local_setup_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,11 @@ def process_dsv_file(
else:
# group remaining source lines by basename
path_without_ext, ext = os.path.splitext(remainder)
if path_without_ext not in basenames:
basenames[path_without_ext] = set()
assert ext.startswith('.')
ext = ext[1:]
if ext in (primary_extension, additional_extension):
if path_without_ext not in basenames:
basenames[path_without_ext] = set()
basenames[path_without_ext].add(ext)

# add the dsv extension to each basename if the file exists
Expand Down

0 comments on commit 01592eb

Please # to comment.