Commit 82f69cff authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Resolve all packages that have been modified by the transaction

PackageKit dnf backend doesn't resolve the different packages in the
transaction as finished so they were not detected as changed.

BUG: 394388
parent def52034
......@@ -210,13 +210,15 @@ void PKTransaction::packageResolved(PackageKit::Transaction::Info info, const QS
void PKTransaction::submitResolve()
{
QStringList needResolving;
const auto pkgids = m_newPackageStates.value(PackageKit::Transaction::InfoFinished);
foreach(const auto pkgid, pkgids) {
needResolving += PackageKit::Daemon::packageName(pkgid);
foreach(const auto &pkgids, m_newPackageStates) {
foreach(const auto &pkgid, pkgids) {
needResolving += PackageKit::Daemon::packageName(pkgid);
}
}
const auto backend = qobject_cast<PackageKitBackend*>(resource()->backend());
if (!needResolving.isEmpty()) {
needResolving.removeDuplicates();
const auto backend = qobject_cast<PackageKitBackend*>(resource()->backend());
backend->clearPackages(needResolving);
backend->resolvePackages(needResolving);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment