Skip to content

Commit

Permalink
Use master for irons REPOS_FILE_BRANCH (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Sep 25, 2023
1 parent bff9e63 commit df36976
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,26 @@ def smv_rewrite_configs(app, config):
# conf.py). Instead, hook into the 'config-inited' event which is late enough
# to rewrite the various configuration items with the current version.
if app.config.smv_current_version != "":
# this map is used to match branches of control.ros.org to ROS distros, e.g., DISTRO macro
branch_distro = {
"master": "rolling",
"iron": "iron",
"humble": "humble",
"foxy": "foxy",
"galactic": "galactic"
}
# this map is used to match branches of control.ros.org to REPOS_FILE_BRANCH macro
subrepo_branch = {
"master": "master",
"iron": "master",
"humble": "humble",
"foxy": "foxy",
"galactic": "galactic"
}

# Override default values
branch = app.config.smv_current_version
distro = branch_distro[branch]
branch = subrepo_branch[app.config.smv_current_version]
distro = branch_distro[app.config.smv_current_version]
app.config.macros = {
"DISTRO": distro,
"DISTRO_TITLE": distro.title(),
Expand Down

0 comments on commit df36976

Please sign in to comment.