freeze_command: use result call to get proper multibuild package information for aggregatepac

This commit is contained in:
Max Lin 2017-12-19 17:29:26 +08:00
parent c9a0027f8a
commit 50f04f68e3

View File

@ -51,12 +51,12 @@ class FreezeCommand(object):
self.create_bootstrap_aggregate_file()
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)
root = ET.parse(f).getroot()
root = ET.parse(f).getroot().find('result')
l = list()
for e in root.findall('entry'):
name = e.get('name')
for e in root.findall('status'):
name = e.get('package')
if name in ['rpmlint-mini-AGGR']:
continue
l.append(name)