Commit 79ced41d authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Make it possible to create pure tar files.

BUG: 196540

svn path=/trunk/KDE/kdeutils/ark/; revision=985056
parent f745f011
......@@ -327,6 +327,9 @@ bool LibArchiveInterface::addFiles(const QStringList & files, const CompressionO
} else if (filename().right(3).toUpper() == "BZ2") {
kDebug(1601) << "Detected bzip2 compression for new file";
ret = archive_write_set_compression_bzip2(arch_writer);
} else if (filename().right(3).toUpper() == "TAR") {
kDebug(1601) << "Detected no compression for new file (pure tar)";
ret = archive_write_set_compression_none(arch_writer);
} else {
kDebug(1601) << "Falling back to gzip";
ret = archive_write_set_compression_gzip(arch_writer);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment