mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
sync cargo-deny version in python/servo/platform/base.py (#35730)
Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
e91d44d023
commit
494ebaa751
1 changed files with 2 additions and 2 deletions
|
@ -82,11 +82,11 @@ class Base:
|
|||
def cargo_deny_installed():
|
||||
if force or not shutil.which("cargo-deny"):
|
||||
return False
|
||||
# Tidy needs at least version 0.16.3 installed.
|
||||
# Tidy needs at least version 0.18.1 installed.
|
||||
result = subprocess.run(["cargo-deny", "--version"],
|
||||
encoding='utf-8', capture_output=True)
|
||||
(major, minor, micro) = result.stdout.strip().split(" ")[1].split(".", 2)
|
||||
return (int(major), int(minor), int(micro)) >= (0, 16, 3)
|
||||
return (int(major), int(minor), int(micro)) >= (0, 18, 1)
|
||||
|
||||
if cargo_deny_installed():
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue