diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-02-29 17:47:52 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-02-29 18:07:46 +0100 |
commit | 7fb3ee34da91c7db0c6a98b35abd97b521581007 (patch) | |
tree | 7ea6ddc153b9bed93a32a937e387653887247b84 /src/other_tools/just_mr/fetch.cpp | |
parent | e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 (diff) | |
download | justbuild-7fb3ee34da91c7db0c6a98b35abd97b521581007.tar.gz |
archive_fetch_map: only have the actual archive content in the interface
... as this is the only part this map depends on, and not the
information on what to do with the archive, like style of unpacking,
etc. In this way, this map will also be reusable for fetching
foreign files.
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r-- | src/other_tools/just_mr/fetch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index 8779a7bd..74fc8fa8 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -132,7 +132,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config, Logger::Log(LogLevel::Info, "Fetching to {}", fetch_dir->string()); // gather all repos to be fetched - std::vector<ArchiveRepoInfo> archives_to_fetch{}; + std::vector<ArchiveContent> archives_to_fetch{}; std::vector<GitTreeInfo> git_trees_to_fetch{}; archives_to_fetch.reserve( fetch_repos->to_include.size()); // pre-reserve a maximum size @@ -217,7 +217,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config, if (not archive_repo_info->absent or common_args.fetch_absent) { archives_to_fetch.emplace_back( - std::move(*archive_repo_info)); + archive_repo_info->archive); } } break; case CheckoutType::GitTree: { |