mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
show package status when repository configuration is broken
it was just dropped before due to lack of status element for the package
This commit is contained in:
parent
3397acc756
commit
0d941e8766
1
NEWS
1
NEWS
@ -1,6 +1,7 @@
|
||||
0.158
|
||||
- cat/less/blame command: default to expand to stay in sync with checkout
|
||||
- add support for highly experimental native appimage.yml support
|
||||
- show package status when repository configuration is broken
|
||||
|
||||
0.157.2
|
||||
- add compat code for older apis that do not support multibuild
|
||||
|
@ -5509,6 +5509,15 @@ def result_xml_to_dicts(xml):
|
||||
# always a status element
|
||||
snodes = node.findall('status')
|
||||
is_multi = len(snodes) > 1
|
||||
if len(snodes) < 1:
|
||||
# the repository setup is broken
|
||||
smap = dict(rmap)
|
||||
smap['pkg'] = "_repository"
|
||||
smap['code'] = rmap['repostate']
|
||||
smap['details'] = node.get('details')
|
||||
yield smap, is_multi
|
||||
continue
|
||||
|
||||
for statusnode in snodes:
|
||||
smap = dict(rmap)
|
||||
smap['pkg'] = smap['package'] = smap['pac'] = statusnode.get('package')
|
||||
|
Loading…
Reference in New Issue
Block a user