зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1798827 - Use `packaging.version` instead of `LooseVersion` when comparing MozillaBuild versions r=firefox-build-system-reviewers,glandium
`packaging.version` can handle additional text in the version number (eg: `4.0pre1` and `4.0.2rc1`) that `LooseVersion` cannot. Differential Revision: https://phabricator.services.mozilla.com/D161756
This commit is contained in:
Родитель
100388cb7a
Коммит
6b4d839e63
|
@ -17,8 +17,8 @@ import time
|
|||
|
||||
import blessed
|
||||
import six
|
||||
from looseversion import LooseVersion as Version
|
||||
from mozbuild.util import mozilla_build_version
|
||||
from packaging.version import Version
|
||||
|
||||
IS_WINDOWS = sys.platform.startswith("win")
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ import subprocess
|
|||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from looseversion import LooseVersion as Version
|
||||
from mozboot.base import BaseBootstrapper
|
||||
from mozbuild.util import mozilla_build_version
|
||||
from packaging.version import Version
|
||||
|
||||
|
||||
def is_aarch64_host():
|
||||
|
|
|
@ -29,7 +29,7 @@ from io import BytesIO, StringIO
|
|||
from pathlib import Path
|
||||
|
||||
import six
|
||||
from looseversion import LooseVersion as Version
|
||||
from packaging.version import Version
|
||||
|
||||
MOZBUILD_METRICS_PATH = os.path.abspath(
|
||||
os.path.join(__file__, "..", "..", "metrics.yaml")
|
||||
|
|
Загрузка…
Ссылка в новой задаче