From 7c476a707544f2de6ed7ecc296eb08591ca1a691 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 11 Sep 2024 11:59:52 +0200 Subject: Move ParseArchiveContent function to the header ...to remove code duplications in ReposToSetupMap. --- src/other_tools/utils/parse_archive.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/other_tools/utils/parse_archive.hpp') diff --git a/src/other_tools/utils/parse_archive.hpp b/src/other_tools/utils/parse_archive.hpp index 6d356dd4..bf7f02fc 100644 --- a/src/other_tools/utils/parse_archive.hpp +++ b/src/other_tools/utils/parse_archive.hpp @@ -20,6 +20,11 @@ #include "src/buildtool/build_engine/expression/expression.hpp" #include "src/other_tools/ops_maps/content_cas_map.hpp" +#include "src/utils/cpp/expected.hpp" + +auto ParseArchiveContent(ExpressionPtr const& repo_desc, + std::string const& origin) + -> expected; // Parse the description of an archive repository; if an error // occurs, call the logger with fatal set to true and return std::nullopt -- cgit v1.2.3