This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
plasma-pk-updates/plasma-pk-updates-0.3.2.20200829git-workaround-disable-network-online-check.patch

15 lines
830 B
Diff

--- plasma-pk-updates-0.3.2.20200829git/src/declarative/pkupdates.cpp.orig 2021-07-10 17:48:41.480399222 +0200
+++ plasma-pk-updates-0.3.2.20200829git/src/declarative/pkupdates.cpp 2021-07-10 17:49:14.574988259 +0200
@@ -172,8 +172,9 @@
bool PkUpdates::isNetworkOnline() const
{
- qCDebug(PLASMA_PK_UPDATES) << "Is net online:" << (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline);
- return (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline);
+ qCDebug(PLASMA_PK_UPDATES) << "Is net online (ignoring):" << (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline);
+ //return (PackageKit::Daemon::networkState() > PackageKit::Daemon::Network::NetworkOffline);
+ return true;
}
void PkUpdates::doDelayedCheckUpdates()