Commit 3fda7d60 authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

clizip: Fix detection of unsupported zip archives

When extracting files from zip archives using newer features unsupported
by clizip, such as AES encryption or XZ compression, Ark currently fails

This commit adds an error string to ExtractionFailedPatterns, so the
user at least gets an error message when trying to extract such
parent 063b78cd
......@@ -118,7 +118,7 @@ ParameterList CliPlugin::parameterList() const
p[PasswordPromptPattern] = QStringLiteral(" password: ");
p[WrongPasswordPatterns] = QStringList() << QStringLiteral("incorrect password");
//p[ExtractionFailedPatterns] = QStringList() << "CRC failed";
p[ExtractionFailedPatterns] = QStringList() << QStringLiteral("unsupported compression method");
p[CorruptArchivePatterns] = QStringList() << QStringLiteral("End-of-central-directory signature not found");
p[DiskFullPatterns] = QStringList() << QStringLiteral("write error \\(disk full\\?\\)")
<< QStringLiteral("No space left on device");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment