diff --git a/ros_buildfarm/config/build_file.py b/ros_buildfarm/config/build_file.py index 61f2c34c2..cc7fd1371 100644 --- a/ros_buildfarm/config/build_file.py +++ b/ros_buildfarm/config/build_file.py @@ -63,9 +63,13 @@ def __init__(self, name, data): # noqa: D107 assert isinstance(self.tag_blacklist, list) self.targets = {} + self.custom_rosdep_urls = [] for os_name in data.get('targets', {}).keys(): if os_name == '_config': - continue + if 'custom_rosdep_urls' in data['targets']['_config']: + self.custom_rosdep_urls = \ + data['targets']['_config']['custom_rosdep_urls'] + assert isinstance(self.custom_rosdep_urls, list) self.targets[os_name] = {} for os_code_name in data['targets'][os_name].keys(): self.targets[os_name][os_code_name] = {} @@ -73,13 +77,6 @@ def __init__(self, name, data): # noqa: D107 self.targets[os_name][os_code_name][arch] = \ data['targets'][os_name][os_code_name][arch] - self.custom_rosdep_urls = [] - if '_config' in data['targets']: - if 'custom_rosdep_urls' in data['targets']['_config']: - self.custom_rosdep_urls = \ - data['targets']['_config']['custom_rosdep_urls'] - assert isinstance(self.custom_rosdep_urls, list) - self.shared_ccache = False if 'shared_ccache' in data: self.shared_ccache = bool(data['shared_ccache'])