mirror of
https://github.com/munki/munki.git
synced 2026-04-23 21:40:25 -05:00
Assign maxversion before using it in a comparison.
Fix typo: 'cadir' should be 'capath' git-svn-id: http://munki.googlecode.com/svn/trunk@620 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -639,6 +639,7 @@ def getInstalledVersion(pl):
|
||||
if ad_item['_name'] == name:
|
||||
appinfo.append(ad_item)
|
||||
|
||||
maxversion = "0.0.0.0.0"
|
||||
for ai_item in appinfo:
|
||||
if 'version' in ai_item:
|
||||
if compareVersions(ai_item['version'],
|
||||
@@ -2076,7 +2077,7 @@ def curl(url, destinationpath, onlyifnewer=False, etag=None, resume=False,
|
||||
print >>f, 'cacert = "%s"' % cacert
|
||||
if capath:
|
||||
if not os.path.isdir(capath):
|
||||
raise CurlError(-2, "No CA directory at %s" % cadir)
|
||||
raise CurlError(-2, "No CA directory at %s" % capath)
|
||||
print >>f, 'capath = "%s"' % capath
|
||||
if cert:
|
||||
if not os.path.isfile(cert):
|
||||
|
||||
Reference in New Issue
Block a user