make package::uninstall actually work

This commit is contained in:
Marco Martin 2014-06-02 16:38:50 +02:00
parent caef1b9f6d
commit 4fd0af246d

View File

@ -721,13 +721,7 @@ KJob *Package::install(const QString &sourcePackage, const QString &packageRoot)
KJob *Package::uninstall(const QString &packageName, const QString &packageRoot) KJob *Package::uninstall(const QString &packageName, const QString &packageRoot)
{ {
//FIXME:packageName unused, name taken from metadata().pluginName() ? d->createPackageMetadata(packageRoot + packageName);
//can this become either just uninstall() otherwise maintain parameters and be static?
const QString pname = metadata().pluginName();
QString proot = path();
proot.replace(pname, "");
return d->structure.data()->uninstall(this, packageRoot); return d->structure.data()->uninstall(this, packageRoot);
} }