mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +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
|
0.158
|
||||||
- cat/less/blame command: default to expand to stay in sync with checkout
|
- cat/less/blame command: default to expand to stay in sync with checkout
|
||||||
- add support for highly experimental native appimage.yml support
|
- add support for highly experimental native appimage.yml support
|
||||||
|
- show package status when repository configuration is broken
|
||||||
|
|
||||||
0.157.2
|
0.157.2
|
||||||
- add compat code for older apis that do not support multibuild
|
- 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
|
# always a status element
|
||||||
snodes = node.findall('status')
|
snodes = node.findall('status')
|
||||||
is_multi = len(snodes) > 1
|
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:
|
for statusnode in snodes:
|
||||||
smap = dict(rmap)
|
smap = dict(rmap)
|
||||||
smap['pkg'] = smap['package'] = smap['pac'] = statusnode.get('package')
|
smap['pkg'] = smap['package'] = smap['pac'] = statusnode.get('package')
|
||||||
|
Loading…
Reference in New Issue
Block a user