Commit fb3a2a15 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

pk: only trigger offline updates after a successful download

BUG: 413028
parent 4d8d007f
......@@ -225,7 +225,7 @@ void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time
m_backend->fetchUpdates();
fetchLastUpdateTime();
if (useOfflineUpdates()) {
if (useOfflineUpdates() && exit == PackageKit::Transaction::ExitSuccess) {
PackageKit::Daemon::global()->offline()->trigger(PackageKit::Offline::ActionReboot);
Q_EMIT passiveMessage(i18n("Please restart the computer to finish the update"));
}
......
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