diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-10-31 17:07:14 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-11-14 13:35:01 +0100 |
commit | bc84005095bab7c62faf0ddf08763bd96892e478 (patch) | |
tree | 181b5c868fc475534706bb1c83f8746c10836072 /src/other_tools/utils | |
parent | e4aee9470da57a47d029f15ffa6795fba0398d60 (diff) | |
download | justbuild-bc84005095bab7c62faf0ddf08763bd96892e478.tar.gz |
just-mr: Add 'mirrors' field to archive-like repositories
Also extends 'distdir' repositories logic accordingly.
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r-- | src/other_tools/utils/TARGETS | 1 | ||||
-rw-r--r-- | src/other_tools/utils/content.hpp | 5 |
2 files changed, 4 insertions, 2 deletions
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<std::string> { - 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; } |