Respect packageRoot when uninstalling, not path()

This commit is contained in:
Sebastian Kügler 2013-02-27 03:05:05 +01:00
parent 8170075d8d
commit ff721cf8ae

View File

@ -56,8 +56,7 @@ KJob* PackageStructure::install(Package *package, const QString &archivePath, co
KJob* PackageStructure::uninstall(Package *package, const QString &packageRoot)
{
PackageJob* j = new PackageJob(package->servicePrefix(), this);
kDebug() << "PS: " << package->path() << package->isValid();
j->uninstall(package->path());
j->uninstall(packageRoot + package->metadata().pluginName());
return j;
}