From d90076c91f7aa83c35a8a0c3840048178dfc1e39 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 27 Feb 2024 16:34:30 +0100 Subject: Add data structure for foreign-file roots --- src/other_tools/utils/parse_archive.hpp | 8 ++++++++ 1 file changed, 8 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 91f3e280..6d356dd4 100644 --- a/src/other_tools/utils/parse_archive.hpp +++ b/src/other_tools/utils/parse_archive.hpp @@ -30,4 +30,12 @@ auto ParseArchiveDescription(ExpressionPtr const& repo_desc, const AsyncMapConsumerLoggerPtr& logger) -> std::optional; +// Parse the description of a foreign-file repository; if an error +// occurs, call the logger with fatal set to true and return std::nullopt +// instead. +auto ParseForeignFileDescription(ExpressionPtr const& repo_desc, + std::string const& origin, + const AsyncMapConsumerLoggerPtr& logger) + -> std::optional; + #endif -- cgit v1.2.3