mirror of https://github.com/mamba-org/mamba.git
Ignore packages signatures when using resolvo for now
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
parent
71e83ac748
commit
0a2a79d9aa
|
@ -113,19 +113,20 @@ namespace mamba::solver::resolvo
|
||||||
.or_else([](specs::ParseError&& err) { throw std::move(err); })
|
.or_else([](specs::ParseError&& err) { throw std::move(err); })
|
||||||
.value();
|
.value();
|
||||||
|
|
||||||
auto signatures = [&]
|
// TODO: it does not seems resolvo can handle setting signatures on solvables for now
|
||||||
{
|
// auto signatures = [&]
|
||||||
auto maybe_sigs = repodata_doc["signatures"];
|
// {
|
||||||
if (!maybe_sigs.error() && verify_artifacts)
|
// auto maybe_sigs = repodata_doc["signatures"];
|
||||||
{
|
// if (!maybe_sigs.error() && verify_artifacts)
|
||||||
return std::make_optional(maybe_sigs);
|
// {
|
||||||
}
|
// return std::make_optional(maybe_sigs);
|
||||||
else
|
// }
|
||||||
{
|
// else
|
||||||
LOG_DEBUG << "No signatures available or requested. Downloading without verifying artifacts.";
|
// {
|
||||||
return decltype(std::make_optional(maybe_sigs)){};
|
// LOG_DEBUG << "No signatures available or requested. Downloading without verifying
|
||||||
}
|
// artifacts."; return decltype(std::make_optional(maybe_sigs)){};
|
||||||
}();
|
// }
|
||||||
|
// }();
|
||||||
|
|
||||||
// Process packages.conda first
|
// Process packages.conda first
|
||||||
if (auto pkgs = repodata_doc["packages.conda"]; !pkgs.error())
|
if (auto pkgs = repodata_doc["packages.conda"]; !pkgs.error())
|
||||||
|
|
|
@ -767,19 +767,20 @@ parse_repodata_json(
|
||||||
.or_else([](specs::ParseError&& err) { throw std::move(err); })
|
.or_else([](specs::ParseError&& err) { throw std::move(err); })
|
||||||
.value();
|
.value();
|
||||||
|
|
||||||
auto signatures = [&]
|
// TODO: it does not seems resolvo can handle setting signatures on solvables for now
|
||||||
{
|
// auto signatures = [&]
|
||||||
auto maybe_sigs = repodata["signatures"];
|
// {
|
||||||
if (!maybe_sigs.error() && verify_artifacts)
|
// auto maybe_sigs = repodata["signatures"];
|
||||||
{
|
// if (!maybe_sigs.error() && verify_artifacts)
|
||||||
return std::make_optional(maybe_sigs);
|
// {
|
||||||
}
|
// return std::make_optional(maybe_sigs);
|
||||||
else
|
// }
|
||||||
{
|
// else
|
||||||
LOG_DEBUG << "No signatures available or requested. Downloading without verifying artifacts.";
|
// {
|
||||||
return decltype(std::make_optional(maybe_sigs)){};
|
// LOG_DEBUG << "No signatures available or requested. Downloading without verifying
|
||||||
}
|
// artifacts."; return decltype(std::make_optional(maybe_sigs)){};
|
||||||
}();
|
// }
|
||||||
|
// }();
|
||||||
|
|
||||||
// Process packages.conda first
|
// Process packages.conda first
|
||||||
if (auto pkgs = repodata["packages.conda"]; !pkgs.error())
|
if (auto pkgs = repodata["packages.conda"]; !pkgs.error())
|
||||||
|
|
Loading…
Reference in New Issue