diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-28 01:16:38 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-28 01:16:38 (GMT) |
| commit | 3c1cccdb7f9b0d53da3e2e22bfafe2cefd5fc577 (patch) | |
| tree | 6f2a0497d87945d28ec772f53f8cbb147354a1f5 | |
| parent | dbf64fc4e07a6ed5eccf16cf116eb8590e5007ea (diff) | |
Fix package removal on PackageKit
Allow PackageKit to remove dependencies if necessary. Shouldn't be a
problem.
Fixes removal in Fedora (see bugs attached) and Archlinux.
BUG: 354415
CCBUG: 315063
| -rw-r--r-- | libmuon/backends/PackageKitBackend/PKTransaction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmuon/backends/PackageKitBackend/PKTransaction.cpp b/libmuon/backends/PackageKitBackend/PKTransaction.cpp index e507589..e693966 100644 --- a/libmuon/backends/PackageKitBackend/PKTransaction.cpp +++ b/libmuon/backends/PackageKitBackend/PKTransaction.cpp @@ -46,7 +46,8 @@ void PKTransaction::start() m_trans = PackageKit::Daemon::installPackage(qobject_cast<PackageKitResource*>(resource())->availablePackageId()); break; case Transaction::RemoveRole: - m_trans = PackageKit::Daemon::removePackage(qobject_cast<PackageKitResource*>(resource())->installedPackageId()); + //see bug #315063 + m_trans = PackageKit::Daemon::removePackage(qobject_cast<PackageKitResource*>(resource())->installedPackageId(), true /*allowDeps*/); break; case Transaction::ChangeAddonsRole: qWarning() << "addons unsupported in PackageKit backend"; |
