1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

multibuild compatibility mode for old apis

This commit is contained in:
Marco Strigl 2017-03-09 14:55:30 +01:00
parent ff19a5f539
commit e94c9cc280

View File

@ -5570,6 +5570,11 @@ def get_package_results(apiurl, project, package, wait=False, *args, **kwargs):
if e.code == 502 or e.code == 504: if e.code == 502 or e.code == 504:
# re-try result request # re-try result request
continue continue
root = ET.fromstring(e.read())
if e.code == 400 and kwargs.get('multibuild') and re.search('multibuild', getattr(root.find('summary'), 'text', '')):
kwargs['multibuild'] = None
kwargs['locallink'] = None
continue
raise raise
root = ET.fromstring(xml) root = ET.fromstring(xml)
kwargs['oldstate'] = root.get('state') kwargs['oldstate'] = root.get('state')