Skip to content

Commit

Permalink
Add lzip as compression option
Browse files Browse the repository at this point in the history
Fixes #63.
  • Loading branch information
falconindy committed Jul 30, 2024
1 parent 6c618bb commit b9d0433
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ namespace pkgfile {
std::optional<int> ValidateCompression(std::string_view compress) {
static const auto* mapping = new std::unordered_map<std::string_view, int>{
// clang-format off
{ "none", ARCHIVE_FILTER_NONE },
{ "gzip", ARCHIVE_FILTER_GZIP },
{ "bzip2", ARCHIVE_FILTER_BZIP2 },
{ "gzip", ARCHIVE_FILTER_GZIP },
{ "lz4", ARCHIVE_FILTER_LZ4 },
{ "lzip", ARCHIVE_FILTER_LZIP },
{ "lzma", ARCHIVE_FILTER_LZMA },
{ "lzop", ARCHIVE_FILTER_LZOP },
{ "lz4", ARCHIVE_FILTER_LZ4 },
{ "none", ARCHIVE_FILTER_NONE },
{ "xz", ARCHIVE_FILTER_XZ },
{ "zstd", ARCHIVE_FILTER_ZSTD },
// clang-format on
Expand Down

0 comments on commit b9d0433

Please sign in to comment.