updatecheck.py: Added support for "maximum_os_version" key in pkginfo

git-svn-id: http://munki.googlecode.com/svn/trunk@246 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2009-10-02 23:07:29 +00:00
parent 516d7d75f3
commit 20f97877fd
+8
View File
@@ -759,6 +759,14 @@ def getItemDetail(name, cataloglist, vers=''):
if version.LooseVersion(machine['os_vers']) < version.LooseVersion(min_os_vers):
# skip this one, go to the next
continue
if 'maximum_os_version' in item:
max_os_vers = munkicommon.padVersionString(item['maximum_os_version'],3)
munkicommon.display_debug1("Considering item %s, version %s with maximum os version supported %s" % (item['name'], item['version'], min_os_vers))
munkicommon.display_debug2("Our OS version is %s" % machine['os_vers'])
if version.LooseVersion(machine['os_vers']) > version.LooseVersion(max_os_vers):
# skip this one, go to the next
continue
if 'supported_architectures' in item:
supported_arch_found = False