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

csv exported project results now use ';' as default

This commit is contained in:
Pavol Rusnak 2008-03-13 11:13:22 +00:00
parent 2bf92fce75
commit 734973a0bd
2 changed files with 3 additions and 3 deletions

View File

@ -1261,7 +1261,7 @@ class Osc(cmdln.Cmdln):
@cmdln.option('-l', '--legend', action='store_true',
help='show the legend')
@cmdln.option('--csv', action='store_true',
@cmdln.option('-c', '--csv', action='store_true',
help='csv output')
def do_prjresults(self, subcmd, opts, *args):
"""${cmd_name}: Shows project-wide build results

View File

@ -2402,10 +2402,10 @@ def get_prj_results(apiurl, prj, show_legend=False, csv=False):
if csv:
# TODO: option to disable the table header
row = ['_'] + ['/'.join(tg) for tg in targets]
r.append(','.join(row))
r.append(';'.join(row))
for pac in pacs:
row = [pac] + [status[pac][tg] for tg in targets]
r.append(','.join(row))
r.append(';'.join(row))
return r
# human readable output