1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 23:53:39 +02:00

- do_results: ignore _oldstate key when printing the results in csv format

This commit is contained in:
Marcus Huewe
2012-02-21 14:17:57 +01:00
parent 00286be354
commit 7fc2f02f33

View File

@@ -4256,7 +4256,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.xml:
print ''.join(show_results_meta(*args)),
elif opts.csv:
print '\n'.join(format_results(get_package_results(*args), opts.format))
# ignore _oldstate key
results = [r for r in get_package_results(*args) if not '_oldstate' in r]
print '\n'.join(format_results(results, opts.format))
else:
args.append(opts.verbose)
args.append(opts.watch)