diff options
Diffstat (limited to 'maintainers/scripts/update-python-libraries')
-rwxr-xr-x | maintainers/scripts/update-python-libraries | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maintainers/scripts/update-python-libraries b/maintainers/scripts/update-python-libraries index 4536662c8420b..d95ff4f347e87 100755 --- a/maintainers/scripts/update-python-libraries +++ b/maintainers/scripts/update-python-libraries @@ -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)) |