Skip to content

Commit

Permalink
FIX: introduce BOTAN_UPSTREAM_GITHUB_HANDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Oct 31, 2023
1 parent 37a39cb commit fb6fea4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 9 additions & 2 deletions config/botan.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# The GitHub reference of the Botan target repository.
# The GitHub reference of the upstream Botan repository.
# API requests for meta information and pull requests are targeted here.
BOTAN_UPSTREAM_REPO=randombit/botan

# The GitHub reference of the Botan target repository
# This is typically equal to BOTAN_UPSTREAM_REPO, except if we need to refer to
# unmerged changes that divert from the upstream repository. Links in the
# documents will refer to this repository.
BOTAN_REPO=Rohde-Schwarz/botan

# The name of Botan's main branch
# The name of Botan's main branch on the BOTAN_RPEO
BOTAN_MAIN_BRANCH=pl/lms

# The version of Botan that is currently being targeted by this documentation.
Expand Down
4 changes: 4 additions & 0 deletions tools/auditinfo/auditinfo/botan.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def botan_github_handle() -> str:
""" The repository handle of the main code base on GitHub """
return __get_from_config("BOTAN_REPO")

def botan_upstream_github_handle() -> str:
""" The repository handle of the upstream code base on GitHub """
return __get_from_config("BOTAN_UPSTREAM_REPO")

def botan_main_branch() -> str:
""" The name of the main branch of the main code base on GitHub """
return __get_from_config("BOTAN_MAIN_BRANCH")
Expand Down
2 changes: 1 addition & 1 deletion tools/genaudit/genaudit/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, audit_dir: str):

util.check_keys("Repo", cfg['repo'].keys(), ['local_checkout'])

self.github_handle = auditinfo.botan_github_handle()
self.github_handle = auditinfo.botan_upstream_github_handle()
self.main_branch = auditinfo.botan_main_branch()
self.local_checkout = cfg['repo']['local_checkout']
self.git_ref_from = auditinfo.botan_git_base_ref()
Expand Down

0 comments on commit fb6fea4

Please sign in to comment.