mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +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
|
||||
def find_latest_openpype_version(
|
||||
staging: bool,
|
||||
compatible_with: OpenPypeVersion = None
|
||||
staging: bool
|
||||
) -> Union[OpenPypeVersion, None]:
|
||||
"""Find the latest available OpenPype version in all location.
|
||||
|
||||
Args:
|
||||
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:
|
||||
Latest OpenPype version on None if nothing was found.
|
||||
|
|
@ -1195,12 +1191,6 @@ class BootstrapRepos:
|
|||
if not all_versions:
|
||||
return None
|
||||
|
||||
if compatible_with:
|
||||
all_versions = [
|
||||
version for version in all_versions
|
||||
if version.is_compatible(installed_version)
|
||||
]
|
||||
|
||||
all_versions.sort()
|
||||
latest_version = all_versions[-1]
|
||||
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 "
|
||||
f"with [ {installed_version} ]"))
|
||||
openpype_version = bootstrap.find_latest_openpype_version(
|
||||
use_staging, compatible_with=installed_version)
|
||||
use_staging)
|
||||
|
||||
if openpype_version is None:
|
||||
if use_staging:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue