summaryrefslogtreecommitdiff
path: root/service/SoftwareUpdater.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-12 13:54:08 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-12 13:54:08 -0800
commite7bab66d291acdd627e3bcfe434792ce360483b0 (patch)
tree5f89983938b18c78c7407c49f56f596c00cac43c /service/SoftwareUpdater.cpp
parentab25c968212e402a2b2b8d562f3affac9e8717b9 (diff)
downloadinfinitytier-e7bab66d291acdd627e3bcfe434792ce360483b0.tar.gz
infinitytier-e7bab66d291acdd627e3bcfe434792ce360483b0.zip
Auto-apply updates if enabled.
Diffstat (limited to 'service/SoftwareUpdater.cpp')
-rw-r--r--service/SoftwareUpdater.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/SoftwareUpdater.cpp b/service/SoftwareUpdater.cpp
index f10eb204..0f5b4fca 100644
--- a/service/SoftwareUpdater.cpp
+++ b/service/SoftwareUpdater.cpp
@@ -450,7 +450,7 @@ bool SoftwareUpdater::check(const uint64_t now)
if (_latestBinLength > 0) {
if (_latestBin.length() >= _latestBinLength) {
if (_latestBinValid) {
- return _latestMeta;
+ return true;
} else {
// This is the very important security validation part that makes sure
// this software update doesn't have cooties.
@@ -466,7 +466,7 @@ bool SoftwareUpdater::check(const uint64_t now)
// If we passed both of these, the update is good!
_latestBinValid = true;
printf("VALID UPDATE\n%s\n",OSUtils::jsonDump(_latestMeta).c_str());
- return _latestMeta;
+ return true;
}
}
} catch ( ... ) {} // any exception equals verification failure
@@ -488,7 +488,7 @@ bool SoftwareUpdater::check(const uint64_t now)
}
}
- return nlohmann::json();
+ return false;
}
void SoftwareUpdater::apply()