Skip to content

Commit

Permalink
fix: autoconf version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Dec 10, 2023
1 parent 710807d commit cacb413
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update_native_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def _update_with_root(tool, dry_run):
"openssl": "1.1",
"git": "2.35",
}
only = {
"autoconf": "~v?[0-9]+\.[0-9]+(\.[0-9]+)?$",
}
build_env = Path(__file__).parent / "docker" / "build_scripts" / "build_env.sh"
lines = build_env.read_text().splitlines()
re_ = re.compile(f"^{tool.upper()}_ROOT={tool}-(?P<version>\\S+)$")
Expand All @@ -71,7 +74,7 @@ def _update_with_root(tool, dry_run):
if match is None:
continue
current_version = Version(match["version"], char_fix_required=tool=="openssl")
latest_version = latest(repo[tool], major=major.get(tool, None))
latest_version = latest(repo[tool], major=major.get(tool, None), only=only.get(tool, None))
if latest_version > current_version:
root = f"{tool}-{latest_version}"
url = re.match(f"^{tool.upper()}_DOWNLOAD_URL=(?P<url>\\S+)$", lines[i + 2])["url"]
Expand Down

0 comments on commit cacb413

Please sign in to comment.