summaryrefslogtreecommitdiffstats
path: root/ark/tar.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-08-18 20:55:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-08-18 20:55:03 +0900
commit8e56d30cf88cadcb326d3f111245f2bac23fc36f (patch)
treed97753dbb3cbe813b51ca661aa8ce8f711b7941e /ark/tar.cpp
parent4a7a9f41a5d5084aa98379422facc449888552c0 (diff)
downloadtdeutils-8e56d30c.tar.gz
tdeutils-8e56d30c.zip
Fixed support for existing tar.lzma files. This requires commit 6bbc2b45
from tdelibs to be installed too. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ark/tar.cpp')
-rw-r--r--ark/tar.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ark/tar.cpp b/ark/tar.cpp
index 0c6f3d2..cef9596 100644
--- a/ark/tar.cpp
+++ b/ark/tar.cpp
@@ -200,6 +200,9 @@ TQString TarArch::getCompressor()
if ( m_fileMimeType == "application/x-tbz" )
return TQString( "bzip2" );
+ if ( m_fileMimeType == "application/x-tlzma" )
+ return TQString( "lzma" );
+
if ( m_fileMimeType == "application/x-tlz" )
return TQString( "lzip" );
@@ -224,6 +227,9 @@ TQString TarArch::getUnCompressor()
if ( m_fileMimeType == "application/x-tbz" )
return TQString( "bunzip2" );
+ if ( m_fileMimeType == "application/x-tlzma" )
+ return TQString( "lzma" );
+
if ( m_fileMimeType == "application/x-tlz" )
return TQString( "lzip" );
@@ -389,7 +395,7 @@ void TarArch::createTmp()
kdDebug(1601) << "Uncompressor is " << strUncompressor << endl;
*kp << strUncompressor;
TDEProcess::Communication flag = TDEProcess::AllOutput;
- if (strUncompressor == "lzip") {
+ if (strUncompressor == "lzip" || strUncompressor == "lzma") {
*kp << "-d";
}
else if (strUncompressor == "lzop")