Skip to content

Commit

Permalink
Merge pull request #1410 from wolfv/remove_duplicate_package_load
Browse files Browse the repository at this point in the history
remove duplicated code
  • Loading branch information
wolfv authored Jan 28, 2022
2 parents 2143dcf + 3a6ccea commit abe9e61
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libmamba/src/api/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,6 @@ namespace mamba
MPool pool;
std::vector<MRepo> repos = load_channels(pool, package_caches, is_retry);

if (ctx.offline)
{
LOG_INFO << "Creating repo from pkgs_dir for offline";
for (const auto& c : ctx.pkgs_dirs)
repos.push_back(detail::create_repo_from_pkgs_dir(pool, c));
}
PrefixData prefix_data(ctx.target_prefix);
prefix_data.load();

Expand Down

0 comments on commit abe9e61

Please sign in to comment.