Merge pull request #203 from openSUSE/coolo_fix_new_stagings

cope with new staging prjs
This commit is contained in:
Alberto Planas 2014-08-07 13:23:41 +02:00
commit 447db9bea9

View File

@ -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