Commit f191efb8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Properly detect if PK_OFFLINE_UPDATE is set

Otherwise PK_OFFLINE_UPDATE=0 will also be true, which is weird.
parent c6cbdee5
......@@ -162,7 +162,7 @@ void PackageKitUpdater::proceed()
bool PackageKitUpdater::useOfflineUpdates() const
if (qEnvironmentVariableIsSet("PK_OFFLINE_UPDATE"))
if (qEnvironmentVariableIntValue("PK_OFFLINE_UPDATE"))
return true;
KConfigGroup group(KSharedConfig::openConfig(), "Software");
return group.readEntry<bool>("UseOfflineUpdates", false);
Supports Markdown
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