mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[python] account for conda versioning change when getting the list of available packages (PY-58678)
(cherry picked from commit 54abf8ac898bdf163362552bb53f6f5f2405baf6) IJ-MR-101950 GitOrigin-RevId: 38a83dfeffbe1f63b34f3e5378a0c1738df6f498
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3953b99bb0
commit
c31270aacb
@@ -24,7 +24,7 @@ def do_list_available_packages():
|
||||
major_version = int(version_splitted[0])
|
||||
minor_version = int(version_splitted[1])
|
||||
|
||||
if major_version >= 4 and minor_version >= 4:
|
||||
if major_version >= 22 or (major_version >= 4 and minor_version >= 4):
|
||||
init_context()
|
||||
from conda.core.index import get_index
|
||||
index = get_index()
|
||||
|
||||
Reference in New Issue
Block a user