D'oh! Part two of fix for logoutinstalls with available Apple Updates, but no available munki updates

git-svn-id: http://munki.googlecode.com/svn/trunk@323 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-11-12 00:19:17 +00:00
parent f80eff278b
commit 1e273f619a
+7
View File
@@ -390,7 +390,14 @@ def appleSoftwareUpdatesAvailable(forcecheck=False, suppresscheck=False):
return writeAppleUpdatesFile()
if forcecheck:
# typically because user initiated the check from
# Managed Software Update.app
retcode = checkForSoftwareUpdates()
elif suppresscheck:
# typically because we're doing a logout install; if
# there are no waiting Apple Updates we shouldn't
# trigger a check for them
return False
else:
# have we checked recently? Don't want to check with
# Apple Software Update server too frequently