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 "<