mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
maintainers/scripts/update-python-libraries: compare versions semantically instead of lexicographically (#43120)
This commit is contained in:
parent
06c6ff2465
commit
7a59be9c52
|
@ -262,7 +262,7 @@ def _update_package(path, target):
|
|||
if new_version == version:
|
||||
logging.info("Path {}: no update available for {}.".format(path, pname))
|
||||
return False
|
||||
elif new_version <= version:
|
||||
elif Version(new_version) <= Version(version):
|
||||
raise ValueError("downgrade for {}.".format(pname))
|
||||
if not new_sha256:
|
||||
raise ValueError("no file available for {}.".format(pname))
|
||||
|
|
Loading…
Reference in a new issue