From 80f14d3fd2a8b5de8b2bd6a840bbae8438f660cd Mon Sep 17 00:00:00 2001 From: Stephane Leduc Date: Mon, 9 Jan 2023 11:41:10 +0100 Subject: [PATCH] fix#19 : fix conan remote add in remaken (crash) --- src/tools/ConanSystemTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ConanSystemTool.cpp b/src/tools/ConanSystemTool.cpp index 3eef5f9..0c7cfcc 100755 --- a/src/tools/ConanSystemTool.cpp +++ b/src/tools/ConanSystemTool.cpp @@ -74,8 +74,8 @@ void ConanSystemTool::addRemoteImpl(const std::string & repositoryUrl) if (repoParts.size() < 2) { if (m_options.getVerbose()) { BOOST_LOG_TRIVIAL(info)<<"Using existing conan remote : " << repositoryUrl << ". Remote Url can be specified with remoteAlias#[remoteUrl[#position]]"<= 2) { repoId = repoParts.at(0); @@ -102,7 +102,7 @@ void ConanSystemTool::addRemoteImpl(const std::string & repositoryUrl) } } - if ( std::find(conanRemoteAliases.begin(), conanRemoteAliases.end(), repoId+":") == conanRemoteAliases.end() && + if ( std::find(conanRemoteAliases.begin(), conanRemoteAliases.end(), repoId) == conanRemoteAliases.end() && std::find(conanRemoteUrls.begin(), conanRemoteUrls.end(), repoParts.at(1)) == conanRemoteUrls.end()) { std::cout<<"Adding conan remote "<