diff options
Diffstat (limited to 'src/other_tools/utils/parse_archive.hpp')
-rw-r--r-- | src/other_tools/utils/parse_archive.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<ArchiveRepoInfo>; +// 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<ForeignFileInfo>; + #endif |