Change "os_build" variable to "build_info" (#2) (#7)

Actually hanged it to `build_info[0]`.
This commit is contained in:
Graham R Pugh 2019-05-08 22:07:56 +02:00 committed by GitHub
parent 9e35978b72
commit 168bd5b0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -679,7 +679,7 @@ def main():
elif args.current: elif args.current:
# automatically select matching build ID if current option used # automatically select matching build ID if current option used
if os_build == product_info[product_id]['BUILD']: if build_info[0] == product_info[product_id]['BUILD']:
answer = index+1 answer = index+1
break break
@ -715,10 +715,10 @@ def main():
print ('\n' print ('\n'
'Build %s is not available. ' 'Build %s is not available. '
'Run again without --current argument ' 'Run again without --current argument '
'to select a valid build to download.\n' % os_build) 'to select a valid build to download.\n' % build_info[0])
exit(0) exit(0)
else: else:
print '\nBuild %s available. Downloading #%s...\n' % (os_build, answer) print '\nBuild %s available. Downloading #%s...\n' % (build_info[0], answer)
elif args.version: elif args.version:
try: try:
answer answer