common-updater-scripts: list-directory-versions: scan for absolute urls too
This commit is contained in:
parent
4ad0f129ae
commit
c1188a559b
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue