diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-14 11:05:34 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-08-14 15:09:11 +0200 |
commit | d95a7a4bb8d00a2e994bee82f4f64b2ed1d9ec12 (patch) | |
tree | a58225968a9717887a774a0467933bde58129f1b /src/other_tools/root_maps/content_git_map.cpp | |
parent | 65886ff172190648c1114a9953c154f3f4821119 (diff) | |
download | justbuild-d95a7a4bb8d00a2e994bee82f4f64b2ed1d9ec12.tar.gz |
just-mr archives: Add 7zip support via autodetection option
Similarly to tarballs, an autodetection option for zip-like
archives is added to enable a unified handling of both traditional
zip and 7zip formats. Thus, for "zip" archives just-mr uses now
this autodetection option.
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r-- | src/other_tools/root_maps/content_git_map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 5fb1bd88..64c3db75 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -35,7 +35,8 @@ namespace { ArchiveType::TarAuto, archive, dst_dir); } if (repo_type == "zip") { - return ArchiveOps::ExtractArchive(ArchiveType::Zip, archive, dst_dir); + return ArchiveOps::ExtractArchive( + ArchiveType::ZipAuto, archive, dst_dir); } return "unrecognized repository type"; } |