maintainers/scripts/update-python-libraries: compare versions semantically instead of lexicographically (#43120)
commit7a59be9c52aa08975466c57147106cb26b0f365d
authorRobert Schütz <rschuetz17@gmail.com>
dateFri 6 Jul 2018, 19:32 (8 years ago)
parent06c6ff2
maintainers/scripts/update-python-libraries+1−1
@@ -262,7 +262,7 @@ def _update_package(path, target):
262262 if new_version == version:
263263 logging.info("Path {}: no update available for {}.".format(path, pname))
264264 return False
265− elif new_version <= version:
265+ elif Version(new_version) <= Version(version):
266266 raise ValueError("downgrade for {}.".format(pname))
267267 if not new_sha256:
268268 raise ValueError("no file available for {}.".format(pname))