mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
API CHANGE
Add a new optional input argument to the sysadm/updates, "checkupdates" action: "force":"[true/false]" (default is false) This tells the check system to skip all previous checks for updates and re-run the update routines to look for new updates (if force==true), otherwise it might return the previous result of the update check if not enough time has passed since the other check.
This commit is contained in:
@@ -572,7 +572,9 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmUpdateRequest(const QJsonVal
|
||||
QString act = JsonValueToString(in_args.toObject().value("action"));
|
||||
if(act=="checkupdates"){
|
||||
ok = true;
|
||||
out->insert("checkupdates", sysadm::Update::checkUpdates());
|
||||
bool fastcheck = true;
|
||||
fastcheck = in_args.toObject().value("force").toString().toLower()!="true";
|
||||
out->insert("checkupdates", sysadm::Update::checkUpdates(fastcheck));
|
||||
|
||||
}else if(act=="listbranches"){
|
||||
ok = true;
|
||||
|
||||
Reference in New Issue
Block a user