1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-19 00:32:12 +01:00
Ed Bartosh 2d29c35f46 Fixed traceback in get_prj_results
The reason of the crash is that not all targets are always defined for
all packages. In our environment it happens when linked project is
created and sources have just been uploaded to one package.

Here is the crash:
Traceback (most recent call last):
  File "../tools-testing/build-package", line 313, in <module>
    sys.exit(main(sys.argv))
  File "../tools-testing/build-package", line 309, in main
    return build(apiurl, tproject, package, timeout)
  File "../tools-testing/build-package", line 226, in build
    hide_legend=True, csv=True)
  File "/usr/lib/python2.7/site-packages/osc/core.py", line 5135, in get_prj_results
    row = [pac] + [status[pac][tg] for tg in targets]
status[pac]]
KeyError: ('Fedora_18', 'i586', 'outdated')

Please note that this fix fixes only csv mode. For other modes osc still
can crash, but it's hard to reproduce here as we're not using them.

Signed-off-by: Ed Bartosh <bartosh@gmail.com>
2013-12-05 16:46:30 +02:00
..
2009-12-03 19:19:53 +01:00
2013-12-03 08:25:13 +01:00
2013-07-04 14:24:29 +02:00
2013-05-27 14:13:19 +02:00
2013-12-05 16:46:30 +02:00
2013-08-13 11:54:11 +02:00
2013-04-16 10:51:41 +02:00