Add Compress compress support to libarchive-wrapper

This commit is contained in:
Eric NOULARD 2010-08-16 20:45:05 +02:00
parent 1a3ad5c615
commit fb41da4a6b
2 changed files with 9 additions and 0 deletions

View File

@ -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)
{

View File

@ -31,6 +31,7 @@ public:
enum Compress
{
CompressNone,
CompressCompress,
CompressGZip,
CompressBZip2,
CompressLZMA,