diff --git a/src/rosdep2/sources_list.py b/src/rosdep2/sources_list.py index 3162cca044..b0de6d8b10 100644 --- a/src/rosdep2/sources_list.py +++ b/src/rosdep2/sources_list.py @@ -550,10 +550,10 @@ def get_additional_sources(dist_name): print('Skip distro "%s" different from requested "%s"' % (dist_name, ros_distro)) return distribution = get_index().distributions[dist_name] - if skip_eol_distros: - if distribution.get('distribution_status') == 'end-of-life': - print('Skip end-of-life distro "%s"' % dist_name) - return + if skip_eol_distros: + if distribution.get('distribution_status') == 'end-of-life': + print('Skip end-of-life distro "%s"' % dist_name) + return print('Add distro "%s"' % dist_name) rds = RosDistroSource(dist_name) rosdep_data = get_gbprepo_as_rosdep_data(dist_name)