Skip to content

Commit

Permalink
Fixes #162 Cope with Remote API refactor in v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
markfinal committed Dec 29, 2024
1 parent e455b80 commit b2dfe96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cruiz/workers/api/v2/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def _interop_remote_list(api: typing.Any) -> typing.List[ConanRemote]:


def _interop_remotes_sync(api: typing.Any, remotes: typing.List[str]) -> None:
from conans.client.cache.remote_registry import Remote
try:
from conan.api.model import Remote
except ImportError:
# older than v2.1.0
from conans.client.cache.remote_registry import Remote

for remote in _interop_remote_list(api):
api.remotes.remove(remote.name)
Expand Down

0 comments on commit b2dfe96

Please sign in to comment.