From 19f7756b96f4eb1e75900e45e4488aaa8dfb81d9 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 17 Nov 2023 10:54:57 +0100 Subject: archive repository: Query 'just serve' endpoint also when not marked absent ...before going to the network, if 'just serve' endpoint given. ContentCASMap was reworked to provide a cleaner logic for handling pure fetches, which also reduced code duplication in ContentGitMap. --- src/other_tools/repo_map/repos_to_setup_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/other_tools/repo_map') diff --git a/src/other_tools/repo_map/repos_to_setup_map.cpp b/src/other_tools/repo_map/repos_to_setup_map.cpp index 94b7bed5..c0a8cac1 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.cpp +++ b/src/other_tools/repo_map/repos_to_setup_map.cpp @@ -269,7 +269,7 @@ void ArchiveCheckout(ExpressionPtr const& repo_desc, ? std::make_optional(repo_desc_sha512->String()) : std::nullopt, .origin = repo_name, - .origin_from_distdir = false}, + .fetch_only = false}, .repo_type = repo_type, .subdir = subdir.empty() ? "." : subdir.string(), .pragma_special = pragma_special_value, @@ -587,7 +587,7 @@ void DistdirCheckout(ExpressionPtr const& repo_desc, ? std::make_optional(repo_desc_sha512->String()) : std::nullopt, .origin = dist_repo_name, - .origin_from_distdir = true}; + .fetch_only = true}; // add to distdir content map auto repo_distfile = -- cgit v1.2.3