Address issue on Apple silicon where MSC prompted to install non-existent Apple updates.

This commit is contained in:
Greg Neagle
2021-05-26 08:29:45 -07:00
parent 75010e835c
commit 4940db6845
@@ -1281,7 +1281,10 @@ func appleUpdatesRequireRestartOnMojaveAndUp() -> Bool {
func appleUpdatesMustBeDoneWithSystemPreferences() -> Bool {
// Return true if any item in the apple update list must be done with System Preferences Software Update
return isAppleSilicon() || appleUpdatesRequireRestartOnMojaveAndUp()
if isAppleSilicon() {
return getAppleUpdates().count > 0
}
return appleUpdatesRequireRestartOnMojaveAndUp()
}
func updatesContainNonUserSelectedItems() -> Bool {