KTar already supports xz and lzma files, also support them in Plasma::Package.

BUG:287913
(cherry picked from commit 897b07485a8cd70f831b8f586dc84859016b2572)
This commit is contained in:
Jeremy Whiting 2011-12-01 15:50:44 -07:00
parent b31a05c41e
commit ea1f079c34

View File

@ -748,7 +748,8 @@ bool PackagePrivate::installPackage(const QString &package, const QString &packa
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();