Fix undefined 'fileurl' variable

This commit is contained in:
Greg Neagle
2016-06-03 20:03:01 -07:00
parent 85f87e497d
commit 043c7eb24b

View File

@@ -666,7 +666,7 @@ class AppleUpdates(object):
return dist_path
# look for it in the cache
if url.startswith('file://localhost'):
url = fileurl[len('file://localhost'):]
fileurl = url[len('file://localhost'):]
return urllib2.unquote(fileurl)
else:
# we haven't downloaded this yet