summaryrefslogtreecommitdiff
path: root/src/other_tools/repo_map
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-11-17 10:54:57 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-11-21 10:21:29 +0100
commit19f7756b96f4eb1e75900e45e4488aaa8dfb81d9 (patch)
treebf12b1e7506c41514f950b05cc229bc4870a2971 /src/other_tools/repo_map
parent27ce81884242389c85e169445b3ce035a9dd04e1 (diff)
downloadjustbuild-19f7756b96f4eb1e75900e45e4488aaa8dfb81d9.tar.gz
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.
Diffstat (limited to 'src/other_tools/repo_map')
-rw-r--r--src/other_tools/repo_map/repos_to_setup_map.cpp4
1 files changed, 2 insertions, 2 deletions
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 =