Merge pull request #1306 from nilxam/freeze_multibuild

freeze_command: use result call to get proper multibuild package information for aggregatepac
This commit is contained in:
Dominique Leuenberger 2017-12-19 14:00:03 +01:00 committed by GitHub
commit ce7c0d9256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,12 +51,12 @@ class FreezeCommand(object):
self.create_bootstrap_aggregate_file() self.create_bootstrap_aggregate_file()
def bootstrap_packages(self): def bootstrap_packages(self):
url = self.api.makeurl(['source', '{}:0-Bootstrap'.format(self.api.crings)]) url = self.api.makeurl(['build', '{}:0-Bootstrap'.format(self.api.crings), '_result'])
f = self.api.retried_GET(url) f = self.api.retried_GET(url)
root = ET.parse(f).getroot() root = ET.parse(f).getroot().find('result')
l = list() l = list()
for e in root.findall('entry'): for e in root.findall('status'):
name = e.get('name') name = e.get('package')
if name in ['rpmlint-mini-AGGR']: if name in ['rpmlint-mini-AGGR']:
continue continue
l.append(name) l.append(name)