Skip to content

Commit

Permalink
tools/versions: update URLs with dashed or underscored version
Browse files Browse the repository at this point in the history
Some projects use tag or tarball names with dashes or underscores as the
version component separator.
  • Loading branch information
bgilbert authored and neheb committed Oct 24, 2024
1 parent a9c20fc commit 0311bd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def update_wrap(name: str, old_ver: str, new_ver: str) -> None:
# rewrite wrap manually to preserve comments and spacing
replacements = [
(old_ver, new_ver),
(old_ver.replace('.', '-'), new_ver.replace('.', '-')),
(old_ver.replace('.', '_'), new_ver.replace('.', '_')),
]
if old_ver.count('.') == 2 and new_ver.count('.') == 2:
# some projects use URLs like .../projname/2.60/projname-2.60.3.tar.gz
Expand Down

0 comments on commit 0311bd8

Please sign in to comment.