From c1188a559b143950fd1dc55b22820fffc3013b1d Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Fri, 9 Dec 2022 18:44:04 +0100 Subject: [PATCH] common-updater-scripts: list-directory-versions: scan for absolute urls too --- pkgs/common-updater/scripts/list-directory-versions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/common-updater/scripts/list-directory-versions b/pkgs/common-updater/scripts/list-directory-versions index 46c9e9d30a5d..cf2f0adbd43e 100755 --- a/pkgs/common-updater/scripts/list-directory-versions +++ b/pkgs/common-updater/scripts/list-directory-versions @@ -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))