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;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case CompressGZip:
|
||||||
if(archive_write_set_compression_gzip(this->Archive) != ARCHIVE_OK)
|
if(archive_write_set_compression_gzip(this->Archive) != ARCHIVE_OK)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,6 +31,7 @@ public:
|
||||||
enum Compress
|
enum Compress
|
||||||
{
|
{
|
||||||
CompressNone,
|
CompressNone,
|
||||||
|
CompressCompress,
|
||||||
CompressGZip,
|
CompressGZip,
|
||||||
CompressBZip2,
|
CompressBZip2,
|
||||||
CompressLZMA,
|
CompressLZMA,
|
||||||
|
|
Loading…
Reference in New Issue