1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

aliases (pac, pkg, package) in result dict

This commit is contained in:
Michal Vyskocil 2010-04-20 14:37:28 +02:00
parent b17405d9d0
commit 7f845f2c70

View File

@ -3492,9 +3492,9 @@ def get_package_results(apiurl, prj, package, lastbuild=None, repository=[], arc
for node in root.findall('result'):
rmap = {}
rmap['prj'] = prj
rmap['pac'] = package
rmap['rep'] = node.get('repository')
rmap['project'] = rmap['prj'] = prj
rmap['pkg'] = rmap['package'] = rmap['pac'] = package
rmap['repository'] = rmap['repo'] = rmap['rep'] = node.get('repository')
rmap['arch'] = node.get('arch')
rmap['state'] = node.get('state')
rmap['dirty'] = node.get('dirty')