♻️ don't look for compatible version automatically

This commit is contained in:
Ondrej Samohel 2022-08-12 19:45:26 +02:00
parent 1ad9728962
commit b61e47a15d
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 2 additions and 12 deletions

View file

@ -1166,16 +1166,12 @@ class BootstrapRepos:
@staticmethod @staticmethod
def find_latest_openpype_version( def find_latest_openpype_version(
staging: bool, staging: bool
compatible_with: OpenPypeVersion = None
) -> Union[OpenPypeVersion, None]: ) -> Union[OpenPypeVersion, None]:
"""Find the latest available OpenPype version in all location. """Find the latest available OpenPype version in all location.
Args: Args:
staging (bool): True to look for staging versions. staging (bool): True to look for staging versions.
compatible_with (OpenPypeVersion, optional): If set, it will
try to find the latest version compatible with the
one specified.
Returns: Returns:
Latest OpenPype version on None if nothing was found. Latest OpenPype version on None if nothing was found.
@ -1195,12 +1191,6 @@ class BootstrapRepos:
if not all_versions: if not all_versions:
return None return None
if compatible_with:
all_versions = [
version for version in all_versions
if version.is_compatible(installed_version)
]
all_versions.sort() all_versions.sort()
latest_version = all_versions[-1] latest_version = all_versions[-1]
if latest_version == installed_version: if latest_version == installed_version:

View file

@ -729,7 +729,7 @@ def _find_frozen_openpype(use_version: str = None,
">>> Finding latest version compatible " ">>> Finding latest version compatible "
f"with [ {installed_version} ]")) f"with [ {installed_version} ]"))
openpype_version = bootstrap.find_latest_openpype_version( openpype_version = bootstrap.find_latest_openpype_version(
use_staging, compatible_with=installed_version) use_staging)
if openpype_version is None: if openpype_version is None:
if use_staging: if use_staging: