From a93a0110d3f1b40fe2c227baf2373caada208141 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 19 Jan 2017 06:59:36 -0500 Subject: [PATCH] Add "pkg update" to the regular system health check. This should ensure that the pkg databases are *always* up to date without any user interaction. --- src/server/EventWatcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/EventWatcher.cpp b/src/server/EventWatcher.cpp index 4dcf22b..615d83b 100644 --- a/src/server/EventWatcher.cpp +++ b/src/server/EventWatcher.cpp @@ -403,6 +403,9 @@ void EventWatcher::CheckSystemState(){ } obj.insert("updates",updates); } + //Also start a pkg DB update here - need to make sure this is done regularly in the background rather than make the user wait to use the AppCafe + QProcess::startDetached("pkg update"); //normal DB update check - no need to force rebuild it + // Priority 0-10 obj.insert("priority", DisplayPriority(priority) );