Add Compress compress support to libarchive-wrapper
This commit is contained in:
parent
1a3ad5c615
commit
fb41da4a6b
|
@ -63,6 +63,14 @@ cmArchiveWrite::cmArchiveWrite(std::ostream& os, Compress c, Type t):
|
|||
return;
|
||||
}
|
||||
break;
|
||||
case CompressCompress:
|
||||
if(archive_write_set_compression_compress(this->Archive) != ARCHIVE_OK)
|
||||
{
|
||||
this->Error = "archive_write_set_compression_compress: ";
|
||||
this->Error += archive_error_string(this->Archive);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case CompressGZip:
|
||||
if(archive_write_set_compression_gzip(this->Archive) != ARCHIVE_OK)
|
||||
{
|
||||
|
|
|
@ -31,6 +31,7 @@ public:
|
|||
enum Compress
|
||||
{
|
||||
CompressNone,
|
||||
CompressCompress,
|
||||
CompressGZip,
|
||||
CompressBZip2,
|
||||
CompressLZMA,
|
||||
|
|
Loading…
Reference in New Issue