diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-18 20:55:03 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-18 20:55:03 +0900 | 
| commit | 8e56d30cf88cadcb326d3f111245f2bac23fc36f (patch) | |
| tree | d97753dbb3cbe813b51ca661aa8ce8f711b7941e /ark/tar.cpp | |
| parent | 4a7a9f41a5d5084aa98379422facc449888552c0 (diff) | |
| download | tdeutils-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.cpp | 8 | 
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") | 
