From 127c54fd1c5c781a2ab023c744a1cbc3c6766e37 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 21 Jun 2012 00:04:24 +0200 Subject: [PATCH] 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 --- package.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.cpp b/package.cpp index d98f4a3e2..86043e466 100644 --- a/package.cpp +++ b/package.cpp @@ -272,7 +272,8 @@ KPluginInfo Package::metadata() const if (mimeType->is("application/zip")) { archive = new KZip(d->path); } 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); } else { kWarning() << "Could not open package file, unsupported archive format:" << d->path << mimeType->name();