From 2313cc258bc23dfd8a2de6209ab46b89b670ecda Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Thu, 1 Dec 2011 15:50:44 -0700 Subject: [PATCH] KTar already supports xz and lzma files, also support them in Plasma::Package. BUG:287193 --- package.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.cpp b/package.cpp index 4c00d368e..9d05a8dd9 100644 --- a/package.cpp +++ b/package.cpp @@ -509,7 +509,8 @@ bool Package::installPackage(const QString &package, if (mimetype->is("application/zip")) { archive = new KZip(package); } else if (mimetype->is("application/x-compressed-tar") || - 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(package); } else { kWarning() << "Could not open package file, unsupported archive format:" << package << mimetype->name();