This repository was archived by the owner on Jan 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111import subprocess
1212from catkin_pkg .packages import find_packages
1313import rospkg
14+ import rosjava_build_tools .catkin
1415
1516##############################################################################
1617# Utils
@@ -118,10 +119,12 @@ def create_msg_package_index():
118119 package_index = {}
119120 ros_paths = rospkg .get_ros_package_path ()
120121 ros_paths = [x for x in ros_paths .split (':' ) if x ]
122+ # packages that don't properly identify themselves as message packages (fix upstream).
121123 for path in reversed (ros_paths ): # make sure we pick up the source overlays last
122124 for unused_package_path , package in find_packages (path ).items ():
123125 if ('message_generation' in [dep .name for dep in package .build_depends ] or
124- 'genmsg' in [dep .name for dep in package .build_depends ]):
126+ 'genmsg' in [dep .name for dep in package .build_depends ] or
127+ package .name in rosjava_build_tools .catkin .message_package_whitelist ):
125128# print(package.name)
126129# print(" version: %s" % package.version)
127130# print(" dependencies: ")
You can’t perform that action at this time.
0 commit comments