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:
Greg Neagle
2010-07-29 14:26:26 +00:00
parent de4d656bca
commit 4f7de426a0
+2 -1
View File
@@ -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):