Fix error in logic that type == -xz is tested in two branches

of an if..else statement.

Signed-off-by: Antonio Diaz Diaz <antonio@gnu.org>
feat/lzip-support
Antonio Diaz Diaz 6 years ago committed by Slávek Banko
parent faf885b533
commit fc5a2ea7ab
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -627,7 +627,7 @@ bool KRarcHandler::checkStatus( TQString type, int exitCode ) {
return exitCode == 0 || exitCode == 1;
else if( type == "-ace" || type == "zip2" || type == "-lha" || type == "-rpm" || type == "cpio" ||
type == "-tar" || type == "tarz" || type == "-tbz" || type == "-tgz" || type == "-arj" ||
type == "-deb" || type == "-txz" || type == "-xz")
type == "-deb" || type == "-txz")
return exitCode == 0;
else if (type == "gzip" || type == "-xz")
return exitCode == 0 || exitCode == 2;

Loading…
Cancel
Save