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 11
11
import subprocess
12
12
from catkin_pkg .packages import find_packages
13
13
import rospkg
14
+ import rosjava_build_tools .catkin
14
15
15
16
##############################################################################
16
17
# Utils
@@ -118,10 +119,12 @@ def create_msg_package_index():
118
119
package_index = {}
119
120
ros_paths = rospkg .get_ros_package_path ()
120
121
ros_paths = [x for x in ros_paths .split (':' ) if x ]
122
+ # packages that don't properly identify themselves as message packages (fix upstream).
121
123
for path in reversed (ros_paths ): # make sure we pick up the source overlays last
122
124
for unused_package_path , package in find_packages (path ).items ():
123
125
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 ):
125
128
# print(package.name)
126
129
# print(" version: %s" % package.version)
127
130
# print(" dependencies: ")
You can’t perform that action at this time.
0 commit comments