Commit 09bf743a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

PK: Don't show an error message when simulating

parent 5e08b2f5
......@@ -276,7 +276,7 @@ void PackageKitResource::fetchDependencies()
QSharedPointer<QJsonObject> packageDependencies(new QJsonObject);
auto trans = PackageKit::Daemon::installPackage(id, PackageKit::Transaction::TransactionFlagSimulate);
connect(trans, &PackageKit::Transaction::errorCode, backend(), &PackageKitBackend::transactionError);
connect(trans, &PackageKit::Transaction::errorCode, this, [this](PackageKit::Transaction::Error, const QString& message) { qWarning() << "Transaction error: " << message << sender(); });
connect(trans, &PackageKit::Transaction::package, this, [packageDependencies](PackageKit::Transaction::Info /*info*/, const QString &packageID, const QString &summary) {
(*packageDependencies)[PackageKit::Daemon::packageName(packageID)] = summary ;
});
......
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