KTar already supports xz and lzma files, also support them in Plasma::Package.
BUG:287193
This commit is contained in:
parent
ed31f2aaee
commit
2313cc258b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user