From d95a7a4bb8d00a2e994bee82f4f64b2ed1d9ec12 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 14 Aug 2023 11:05:34 +0200 Subject: 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. --- test/other_tools/utils/archive_usage.test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/other_tools/utils/archive_usage.test.cpp') diff --git a/test/other_tools/utils/archive_usage.test.cpp b/test/other_tools/utils/archive_usage.test.cpp index 542f05e1..09d080c5 100644 --- a/test/other_tools/utils/archive_usage.test.cpp +++ b/test/other_tools/utils/archive_usage.test.cpp @@ -256,6 +256,7 @@ void enable_write_format_and_filter(archive* aw, ArchiveType type) { REQUIRE(archive_write_set_format_pax_restricted(aw) == ARCHIVE_OK); REQUIRE(archive_write_add_filter_lzma(aw) == ARCHIVE_OK); } break; + case ArchiveType::ZipAuto: case ArchiveType::TarAuto: return; // unused } @@ -292,6 +293,7 @@ void enable_read_format_and_filter(archive* ar, ArchiveType type) { REQUIRE(archive_read_support_format_tar(ar) == ARCHIVE_OK); REQUIRE(archive_read_support_filter_lzma(ar) == ARCHIVE_OK); } break; + case ArchiveType::ZipAuto: case ArchiveType::TarAuto: return; // unused } -- cgit v1.2.3