Commit 4a3e14ff authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

PackageKit: Remove special case remnants of Eula in favor of proceedFunctions

parent c17feb9f
......@@ -133,7 +133,7 @@ void PKTransaction::cancel()
void PKTransaction::cleanup(PackageKit::Transaction::Exit exit, uint runtime)
{
Q_UNUSED(runtime)
const bool cancel = exit == PackageKit::Transaction::ExitEulaRequired || exit == PackageKit::Transaction::ExitCancelled;
const bool cancel = !m_proceedFunctions.isEmpty() || exit == PackageKit::Transaction::ExitCancelled;
const bool simulate = m_trans->transactionFlags() & PackageKit::Transaction::TransactionFlagSimulate;
disconnect(m_trans, nullptr, this, nullptr);
......
......@@ -161,7 +161,7 @@ void PackageKitUpdater::start()
void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time*/)
{
// qDebug() << "update finished!" << exit << time;
if (exit == PackageKit::Transaction::ExitEulaRequired)
if (!m_proceedFunctions.isEmpty())
return;
const bool cancel = exit == PackageKit::Transaction::ExitCancelled;
const bool simulate = m_transaction->transactionFlags() & PackageKit::Transaction::TransactionFlagSimulate;
......
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