cope with new staging prjs
they do not have a bootstrap-copy build result the very first time
This commit is contained in:
parent
2e2a578467
commit
80bc61f1f3
@ -92,7 +92,10 @@ class FreezeCommand(object):
|
||||
root = ET.parse(self.api.retried_GET(url)).getroot()
|
||||
for result in root.findall('result'):
|
||||
if result.get('repository') == 'bootstrap_copy':
|
||||
if not result.find('status').get('code') in codes:
|
||||
status = result.find('status')
|
||||
if status == None:
|
||||
return False
|
||||
if not status.get('code') in codes:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user