Skip to content

Commit

Permalink
remove hardcoded ubuntu and cleanup snapshot url construction logic
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <[email protected]>
  • Loading branch information
mikaelarguedas committed Jul 27, 2019
1 parent c99dd84 commit 49cc868
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
@{
import os

from docker_templates.eol_distro import isDistroEOL
if int(ros_version) == 2:
ros_distro_name = ros2distro_name
elif int(ros_version) == 1:
ros_distro_name = rosdistro_name

if isDistroEOL(ros_distro_name, os_code_name):
repo_url = 'http://snapshots.ros.org/' + str(ros_distro_name) + '/final/' + 'ubuntu' + '/'
repo_url = os.path.join(
'http://snapshots.ros.org',
str(ros_distro_name),
'final',
str(os_name)
)
repo_key = 'AD19BAB3CBF125EA'
source_suffix = 'snapshots'
else:
Expand Down

0 comments on commit 49cc868

Please sign in to comment.