Changeset View
Changeset View
Standalone View
Standalone View
krArc/krarc.cpp
Context not available. | |||||
1637 | { | 1637 | { | ||
---|---|---|---|---|---|
1638 | KRFUNC; | 1638 | KRFUNC; | ||
1639 | KRDEBUG(exitCode); | 1639 | KRDEBUG(exitCode); | ||
1640 | 1640 | return KrArcBaseManager::checkStatus(arcType, exitCode); | |||
1641 | // if this code is changed, the code of KRarcHandler::checkStatus() must be reviewed | | |||
1642 | if (arcType == "zip" || arcType == "rar" || arcType == "7z") | | |||
1643 | return exitCode == 0 || exitCode == 1; | | |||
1644 | else if (arcType == "ace" || arcType == "bzip2" || arcType == "lha" || arcType == "rpm" || arcType == "arj") | | |||
1645 | return exitCode == 0; | | |||
1646 | else if (arcType == "gzip" || arcType == "lzma" || arcType == "xz") | | |||
1647 | return exitCode == 0 || exitCode == 2; | | |||
1648 | else | | |||
1649 | return exitCode == 0; | | |||
1650 | } | 1641 | } | ||
1651 | 1642 | | |||
1652 | void kio_krarcProtocol::checkIf7zIsEncrypted(bool &encrypted, QString fileName) | 1643 | void kio_krarcProtocol::checkIf7zIsEncrypted(bool &encrypted, QString fileName) | ||
Context not available. |