Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 89fc0a8c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham

Make sure update packages have been resolved

Summary:
This allows to query the installed package version.
Note this potentially adds another packagekit transaction which will slow down boot on aptcc systems.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17922
parent d06ffd36
......@@ -587,6 +587,7 @@ void PackageKitBackend::addPackageToUpdate(PackageKit::Transaction::Info info, c
void PackageKitBackend::getUpdatesFinished(PackageKit::Transaction::Exit, uint)
{
if (!m_updatesPackageId.isEmpty()) {
resolvePackages(kTransform<QStringList>(m_updatesPackageId, [](const QString &pkgid) { return PackageKit::Daemon::packageName(pkgid); }));
fetchDetails(m_updatesPackageId);
}
......
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