common-updater-scripts: list-directory-versions: scan for absolute urls too

This commit is contained in:
Francesco Gazzetta 2022-12-09 18:44:04 +01:00
parent 4ad0f129ae
commit c1188a559b

View file

@ -59,7 +59,7 @@ if __name__ == "__main__":
link_url = link.get("href", None)
if link_url is not None:
match = re.fullmatch(
rf"{args.pname}-([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url
rf"(.*/)?{args.pname}-([\d.]+?(-[\d\w.-]+?)?)(\.tar)?(\.[^.]*)", link_url
)
if match:
print(match.group(1))
print(match.group(2))