Commit 26fc51cc authored by Daniel Nicoletti's avatar Daniel Nicoletti
Browse files

Fix updating that requires installing/updating packages from untrusted sources

BUG: 289398
parent 61de49c3
......@@ -56,7 +56,6 @@ UpdateIcon::UpdateIcon(QObject* parent)
UpdateIcon::~UpdateIcon()
{
removeStatusNotifierItem();
}
void UpdateIcon::showSettings()
......
......@@ -283,7 +283,7 @@ void PkTransaction::updatePackages()
Transaction *trans = new Transaction(this);
setupTransaction(trans);
setTransaction(trans, Transaction::RoleUpdatePackages);
trans->updatePackages(d->packages, true);
trans->updatePackages(d->packages, d->onlyTrusted);
if (trans->error()) {
showSorry(i18n("Failed to update package"),
PkStrings::daemonError(trans->error()));
......@@ -299,10 +299,7 @@ void PkTransaction::cancel()
void PkTransaction::setTransaction(Transaction *trans, Transaction::Role role)
{
if (!trans) {
// 0 pointer passed
return;
}
Q_ASSERT(trans);
m_trans = trans;
d->role = role;
......
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