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.

This commit is contained in:
Ken Moore
2017-01-19 06:59:36 -05:00
parent 1a9547a73a
commit a93a0110d3

View File

@@ -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) );