Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Paul Batrina
Ark
Commits
79ced41d
Commit
79ced41d
authored
Jun 22, 2009
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/libarchive/libarchivehandler.cpp
View file @
79ced41d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment