mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
common-updater-scripts: list-directory-versions: scan for absolute urls too
This commit is contained in:
parent
4ad0f129ae
commit
c1188a559b
@ -59,7 +59,7 @@ if __name__ == "__main__":
|
|||||||
link_url = link.get("href", None)
|
link_url = link.get("href", None)
|
||||||
if link_url is not None:
|
if link_url is not None:
|
||||||
match = re.fullmatch(
|
match = re.fullmatch(
|
||||||
rf"{args.pname}-([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url
|
rf"(.*/)?{args.pname}-([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url
|
||||||
)
|
)
|
||||||
if match:
|
if match:
|
||||||
print(match.group(1))
|
print(match.group(2))
|
||||||
|
Loading…
Reference in New Issue
Block a user