mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
♻️ don't look for compatible version automatically
This commit is contained in:
parent
1ad9728962
commit
b61e47a15d
2 changed files with 2 additions and 12 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
2
start.py
2
start.py
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue