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

BUG:287193
This commit is contained in:
Jeremy Whiting 2011-12-01 15:50:44 -07:00
parent ed31f2aaee
commit 2313cc258b

View File

@ -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();