Skip to content

Commit

Permalink
Handle url via ChannelBuilder in Repo constructor (#2398)
Browse files Browse the repository at this point in the history
Handle url via ChannelBuilder in repo constructor
  • Loading branch information
jaimergp authored Mar 27, 2023
1 parent 1b80aca commit 7934148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmamba/src/core/repo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern "C" // Incomplete header
#include <solv/repo_conda.h>
}

#include "mamba/core/channel_builder.hpp"
#include "mamba/core/context.hpp"
#include "mamba/core/output.hpp"
#include "mamba/core/package_info.hpp"
Expand Down Expand Up @@ -58,6 +59,7 @@ namespace mamba
m_repo = repo_create(pool, name.c_str());
m_repo->appdata = this;
read_file(index);
p_channel = &ChannelBuilder::make_cached_channel(url);
}

MRepo::MRepo(MPool& pool, const std::string& name, const std::vector<PackageInfo>& package_infos)
Expand Down

0 comments on commit 7934148

Please sign in to comment.