|
|
@ -200,6 +200,9 @@ TQString TarArch::getCompressor()
|
|
|
|
if ( m_fileMimeType == "application/x-tbz" )
|
|
|
|
if ( m_fileMimeType == "application/x-tbz" )
|
|
|
|
return TQString( "bzip2" );
|
|
|
|
return TQString( "bzip2" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( m_fileMimeType == "application/x-tlzma" )
|
|
|
|
|
|
|
|
return TQString( "lzma" );
|
|
|
|
|
|
|
|
|
|
|
|
if ( m_fileMimeType == "application/x-tlz" )
|
|
|
|
if ( m_fileMimeType == "application/x-tlz" )
|
|
|
|
return TQString( "lzip" );
|
|
|
|
return TQString( "lzip" );
|
|
|
|
|
|
|
|
|
|
|
@ -224,6 +227,9 @@ TQString TarArch::getUnCompressor()
|
|
|
|
if ( m_fileMimeType == "application/x-tbz" )
|
|
|
|
if ( m_fileMimeType == "application/x-tbz" )
|
|
|
|
return TQString( "bunzip2" );
|
|
|
|
return TQString( "bunzip2" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( m_fileMimeType == "application/x-tlzma" )
|
|
|
|
|
|
|
|
return TQString( "lzma" );
|
|
|
|
|
|
|
|
|
|
|
|
if ( m_fileMimeType == "application/x-tlz" )
|
|
|
|
if ( m_fileMimeType == "application/x-tlz" )
|
|
|
|
return TQString( "lzip" );
|
|
|
|
return TQString( "lzip" );
|
|
|
|
|
|
|
|
|
|
|
@ -389,7 +395,7 @@ void TarArch::createTmp()
|
|
|
|
kdDebug(1601) << "Uncompressor is " << strUncompressor << endl;
|
|
|
|
kdDebug(1601) << "Uncompressor is " << strUncompressor << endl;
|
|
|
|
*kp << strUncompressor;
|
|
|
|
*kp << strUncompressor;
|
|
|
|
TDEProcess::Communication flag = TDEProcess::AllOutput;
|
|
|
|
TDEProcess::Communication flag = TDEProcess::AllOutput;
|
|
|
|
if (strUncompressor == "lzip") {
|
|
|
|
if (strUncompressor == "lzip" || strUncompressor == "lzma") {
|
|
|
|
*kp << "-d";
|
|
|
|
*kp << "-d";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (strUncompressor == "lzop")
|
|
|
|
else if (strUncompressor == "lzop")
|
|
|
|