The restructuring in 02dcf75a073017a049db70e3e duplicated some code,

including this list of mimetypes, so it wasn't updated after the changes
in 4.8 (897b07485a8c) got merged into the other copy of this code, in this same file...

CCMAIL: aseigo@kde.org
This commit is contained in:
David Faure 2012-06-21 00:04:24 +02:00
parent 1480efc1ce
commit 127c54fd1c

View File

@ -272,7 +272,8 @@ KPluginInfo Package::metadata() const
if (mimeType->is("application/zip")) { if (mimeType->is("application/zip")) {
archive = new KZip(d->path); archive = new KZip(d->path);
} else if (mimeType->is("application/x-compressed-tar") || mimeType->is("application/x-gzip") || } else if (mimeType->is("application/x-compressed-tar") || mimeType->is("application/x-gzip") ||
mimeType->is("application/x-tar") || mimeType->is("application/x-bzip-compressed-tar")) { mimeType->is("application/x-tar") || mimeType->is("application/x-bzip-compressed-tar") ||
mimeType->is("application/x-xz") || mimeType->is("application/x-lzma")) {
archive = new KTar(d->path); archive = new KTar(d->path);
} else { } else {
kWarning() << "Could not open package file, unsupported archive format:" << d->path << mimeType->name(); kWarning() << "Could not open package file, unsupported archive format:" << d->path << mimeType->name();