common-updater-scripts,directoryListingUpdater: handle ${pname}_${version} file names (#347619)
This commit is contained in:
commit
11b181e2e1
@ -61,7 +61,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:
|
||||
version = match.group(2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user