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

pk: don't fetch updates if we are scheduled to install upon reboot

BUG: 401305
parent 54871105
......@@ -380,6 +380,11 @@ T PackageKitBackend::resourcesByPackageNames(const QStringList &pkgnames) const
void PackageKitBackend::checkForUpdates()
if (PackageKit::Daemon::global()->offline()->updateTriggered()) {
qDebug() << "Won't be checking for updates again, the system needs a reboot to apply the fetched offline updates.";
if (!m_refresher) {
m_refresher = PackageKit::Daemon::refreshCache(false);
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