Fix upload script

This commit is contained in:
Kovid Goyal 2007-06-13 22:37:02 +00:00
parent 54be02b861
commit 4abdc096af

View File

@ -47,16 +47,14 @@ def build_osx():
vm.powerOn() vm.powerOn()
c = 25 * 60 c = 25 * 60
print 'Waiting (minutes):', print 'Waiting (minutes):',
while c > 0: while c > 0 and not os.path.exists('dist/dmgdone'):
if glob.glob('dist/*.dmg'):
break
time.sleep(10) time.sleep(10)
c -= 10 c -= 10
if c%60==0: if c%60==0:
print c, ',', print c/60, ',',
print print
if not glob.glob('dist/dmgdone'): if not os.path.exists('dist/dmgdone'):
raise Exception('OSX build has failed') raise Exception('OSX build has failed')
vm.powerOff() vm.powerOff()
return os.path.basename(glob.glob('dist/*.dmg')[-1]) return os.path.basename(glob.glob('dist/*.dmg')[-1])