From bc84005095bab7c62faf0ddf08763bd96892e478 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 31 Oct 2023 17:07:14 +0100 Subject: just-mr: Add 'mirrors' field to archive-like repositories Also extends 'distdir' repositories logic accordingly. --- src/other_tools/utils/TARGETS | 1 + src/other_tools/utils/content.hpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/other_tools/utils') diff --git a/src/other_tools/utils/TARGETS b/src/other_tools/utils/TARGETS index 65772ae8..2bbf1b9f 100644 --- a/src/other_tools/utils/TARGETS +++ b/src/other_tools/utils/TARGETS @@ -40,6 +40,7 @@ [ "curl_easy_handle" , ["src/buildtool/common", "user_structs"] , ["src/buildtool/crypto", "hasher"] + , ["src/buildtool/logging", "log_level"] ] , "stage": ["src", "other_tools", "utils"] } diff --git a/src/other_tools/utils/content.hpp b/src/other_tools/utils/content.hpp index e7cb7501..907af852 100644 --- a/src/other_tools/utils/content.hpp +++ b/src/other_tools/utils/content.hpp @@ -20,6 +20,7 @@ #include "src/buildtool/common/user_structs.hpp" #include "src/buildtool/crypto/hasher.hpp" +#include "src/buildtool/logging/log_level.hpp" #include "src/other_tools/utils/curl_easy_handle.hpp" // Utilities related to the content of an archive @@ -29,8 +30,8 @@ [[nodiscard]] static auto NetworkFetch(std::string const& fetch_url, CAInfoPtr const& ca_info) noexcept -> std::optional { - auto curl_handle = - CurlEasyHandle::Create(ca_info->no_ssl_verify, ca_info->ca_bundle); + auto curl_handle = CurlEasyHandle::Create( + ca_info->no_ssl_verify, ca_info->ca_bundle, LogLevel::Debug); if (not curl_handle) { return std::nullopt; } -- cgit v1.2.3