Skip to content

Commit

Permalink
Prevent linking to nonexistent ppa
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Feb 12, 2025
1 parent 0703710 commit 63da577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/extensions/generate_release_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,11 @@ def generate_ppa_instructions(gh_api_key, ecal_doc_version, output_rst_file_path
if ecal_doc_version < latest_version:
# Legacy eCAL => don't instruct to use eCAL rolling release PPA
template_file = "ppa_instructions_singleversion.rst.jinja"
ecal_version = ecal_doc_version
else:
# Latest version => instruct to use eCAL rolling release PPA
template_file = "ppa_instructions_multiversion_tabs.rst.jinja"
ecal_version = latest_version


# Load the Jinja2 template
Expand All @@ -446,7 +448,7 @@ def generate_ppa_instructions(gh_api_key, ecal_doc_version, output_rst_file_path

# Render the template with the context
context = {
'ecal_version': ecal_doc_version,
'ecal_version': ecal_version,
}
output = template.render(context)

Expand Down

0 comments on commit 63da577

Please sign in to comment.