make package::uninstall actually work
This commit is contained in:
parent
caef1b9f6d
commit
4fd0af246d
@ -721,13 +721,7 @@ KJob *Package::install(const QString &sourcePackage, const QString &packageRoot)
|
||||
|
||||
KJob *Package::uninstall(const QString &packageName, const QString &packageRoot)
|
||||
{
|
||||
//FIXME:packageName unused, name taken from metadata().pluginName() ?
|
||||
//can this become either just uninstall() otherwise maintain parameters and be static?
|
||||
|
||||
const QString pname = metadata().pluginName();
|
||||
|
||||
QString proot = path();
|
||||
proot.replace(pname, "");
|
||||
d->createPackageMetadata(packageRoot + packageName);
|
||||
return d->structure.data()->uninstall(this, packageRoot);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user