1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00
github.com_openSUSE_osc/osc
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
..
util util/archquery.py: remove unnecessary semicolon 2013-05-27 14:30:08 +02:00
__init__.py add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py - babysitter: catch ServiceRuntimeError 2013-08-29 15:22:25 +02:00
build.py ppc64le can be built on ppc64 2013-12-03 08:25:13 +01:00
checker.py - checker.check: always close fd 2013-07-04 14:24:29 +02:00
cmdln.py cmdln.py: fix reimport of 're' 2013-05-27 14:13:19 +02:00
commandline.py add option for deleterequests using auto-accept 2013-12-05 10:23:53 +01:00
conf.py Do not pass on unicode password from keyrings. 2013-11-21 23:46:45 +01:00
core.py Fixed traceback in get_prj_results 2013-12-05 16:46:30 +02:00
fetch.py All rename cases require delete=False 2013-08-13 11:54:11 +02:00
meter.py python3 compatibility: print function 2013-04-16 10:51:41 +02:00
OscConfigParser.py - OscConfigParser: check explicitly for python3 when importing "configparser" (patch by Kay Hayen <kay.hayen@gmail.com>) 2013-08-14 15:19:03 +02:00
oscerr.py - oscerr.ServiceRuntimeError: fixed docstr 2013-08-29 15:35:40 +02:00
oscssl.py - oscssl.verify_certificate: also print cert info if http_debug is set 2013-06-15 08:53:26 +02:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00