Closed GoogleCodeExporter closed 9 years ago
It looks like the zip options aren't in the archive_write_set_options manual
page.
I've added them to the archive_write_set_options.3 manual page in git master.
Thank you for bringing it to my attention.
The test suite has many examples of using these options. You can look through
libarchive/test/test_write_format_zip*.c for many examples of configuring
the zip writer.
To set compression for the following entries, you can use:
archive_write_set_options(a, "zip:compression=store")
archive_write_set_options(a, "zip:compression=deflate")
We do not currently support a compression-level option for
configuring the deflate compression level.
Note that the zip writer in libarchive 2.8.3 only supports the
compression option described here; the other documented
options I just added were all added later.
The Zip writer should use deflate compression by default unless
configured otherwise. In particular, if the library is compiled without
Zlib support, then deflate compression will not be available. If you are
seeing otherwise, please let us know.
Original comment by kientzle@gmail.com
on 21 Jun 2014 at 6:35
Original comment by kientzle@gmail.com
on 21 Jun 2014 at 6:36
Does the wiki need an update too, or is that just auto-generated from the man
pages?
Thanks for letting me know. I kind of just assumed that I could configure the
compression level.
Original comment by vlov...@gmail.com
on 21 Jun 2014 at 6:51
I've regenerated all of the "ManPageXyz" wiki pages from the mdoc sources.
They should be up-to-date with git master now.
Adding an option to set the compression level would be pretty straightforward:
Send me a pull request. ;-)
Original comment by kientzle@gmail.com
on 21 Jun 2014 at 9:17
Original issue reported on code.google.com by
vlov...@gmail.com
on 21 Jun 2014 at 12:59