directoryListingUpdater2: align with upstream nixpkgs PR
This commit is contained in:
@@ -62,7 +62,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)
|
||||
|
@@ -1,6 +1,9 @@
|
||||
# heavily based on <repo:nixos/nixpkgs:pkgs/common-updater/scripts.nix>
|
||||
# and <repo:nixos/nixpkgs:pkgs/common-updater/scripts/list-directory-versions>.
|
||||
# main difference is that it does fuzzier matching.
|
||||
#
|
||||
# remove this package once this PR lands:
|
||||
# - <https://github.com/NixOS/nixpkgs/pull/347619>
|
||||
{
|
||||
lib,
|
||||
genericUpdater,
|
||||
|
Reference in New Issue
Block a user