diff --git a/src/server/DispatcherParsing.cpp b/src/server/DispatcherParsing.cpp index 3168099..6759ab4 100644 --- a/src/server/DispatcherParsing.cpp +++ b/src/server/DispatcherParsing.cpp @@ -53,7 +53,7 @@ QJsonObject Dispatcher::CreateDispatcherEventNotification(QString ID, QJsonObjec args.insert("action", ID.section("-",0,0).section("_",1,-1) ); //so the client/user can tell which type of pkg action this is for if(ID.section("-",0,0)=="sysadm_pkg_check_upgrade"){ if(isFinished){ - bool hasupdates = !cLog.section("\n",-1,QString::SectionSkipEmpty).contains("packages are up to date"); + bool hasupdates = !cLog.contains("Your packages are up to date."); args.insert("updates_available", hasupdates ? "true" : "false"); } diff --git a/src/server/WebBackend.cpp b/src/server/WebBackend.cpp index 50f9bb0..3289d49 100644 --- a/src/server/WebBackend.cpp +++ b/src/server/WebBackend.cpp @@ -754,7 +754,7 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmPkgRequest(const QJsonValue }else if(act=="pkg_update"){ }else if(act=="pkg_check_upgrade"){ - + out->insert("pkg_check_upgrade", sysadm::PKG::pkg_check_upgrade()); }else if(act=="pkg_upgrade"){ out->insert("pkg_upgrade", sysadm::PKG::pkg_upgrade()); }else if(act=="pkg_audit"){