]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Allow the option to use no 2nd stage compression with lrzip.
authorAndres Mejia <amejia004@gmail.com>
Sun, 24 Feb 2013 18:05:33 +0000 (13:05 -0500)
committerAndres Mejia <amejia004@gmail.com>
Sun, 24 Feb 2013 18:05:33 +0000 (13:05 -0500)
libarchive/archive_write_add_filter_lrzip.c

index 85fdf6af57f563b964ea809387cc95be4d390185..da1cf5e4c9ba3d9d554b170ae838524933c42ab6 100644 (file)
@@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$");
 struct write_lrzip {
        struct archive_write_program_data *pdata;
        int     compression_level;
-       enum { lzma = 0, bzip2, gzip, lzo, zpaq } compression;
+       enum { lzma = 0, bzip2, gzip, lzo, none, zpaq } compression;
 };
 
 static int archive_write_lrzip_open(struct archive_write_filter *);
@@ -107,6 +107,8 @@ archive_write_lrzip_options(struct archive_write_filter *f, const char *key,
                        data->compression = gzip;
                else if (strcmp(value, "lzo") == 0)
                        data->compression = lzo;
+               else if (strcmp(value, "none") == 0)
+                       data->compression = none;
                else if (strcmp(value, "zpaq") == 0)
                        data->compression = zpaq;
                else
@@ -148,6 +150,9 @@ archive_write_lrzip_open(struct archive_write_filter *f)
        case lzo:
                archive_strcat(&as, " -l");
                break;
+       case none:
+               archive_strcat(&as, " -n");
+               break;
        case zpaq:
                archive_strcat(&as, " -z");
                break;