Skip to content

Commit 2ffaa84

Browse files
committed
fix: exclude libtool 2.5.0 from updates
libtool 2.5.0 is a pre-release version (alpha)
1 parent 43e5ce6 commit 2ffaa84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/update_native_dependencies.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,17 @@ def _update_with_root(tool, dry_run):
7777
only = {
7878
"autoconf": "~v?[0-9]+\.[0-9]+(\.[0-9]+)?$",
7979
}
80+
exclude = {
81+
"libtool": "2.5.0", # pre-release
82+
}
8083
lines = DOCKERFILE.read_text().splitlines()
8184
re_ = re.compile(f"^RUN export {tool.upper()}_ROOT={tool}-(?P<version>\\S+) && \\\\$")
8285
for i in range(len(lines)):
8386
match = re_.match(lines[i])
8487
if match is None:
8588
continue
8689
current_version = Version(match["version"], char_fix_required=tool=="openssl")
87-
latest_version = latest(repo[tool], major=major.get(tool, None), only=only.get(tool, None))
90+
latest_version = latest(repo[tool], major=major.get(tool, None), only=only.get(tool, None), exclude=exclude.get(tool, None))
8891
if latest_version > current_version:
8992
root = f"{tool}-{latest_version}"
9093
url = re.match(f"^ export {tool.upper()}_DOWNLOAD_URL=(?P<url>\\S+) && \\\\$", lines[i + 2])["url"]

0 commit comments

Comments
 (0)