mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 09:46:16 +01:00
- use 'print' instead of 'return' (otherwise the message will be written to stderr)
This commit is contained in:
parent
30363a5db9
commit
15178b6e4f
@ -3493,12 +3493,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
args = [ apiurl, project, package, opts.last_build, opts.repo, opts.arch ]
|
args = [ apiurl, project, package, opts.last_build, opts.repo, opts.arch ]
|
||||||
if opts.xml:
|
if opts.xml:
|
||||||
return show_results_meta(*args)
|
print show_results_meta(*args)
|
||||||
elif opts.csv:
|
elif opts.csv:
|
||||||
return '\n'.join(format_results(get_package_results(*args), opts.format))
|
print '\n'.join(format_results(get_package_results(*args), opts.format))
|
||||||
else:
|
else:
|
||||||
args.append(opts.verbose)
|
args.append(opts.verbose)
|
||||||
return '\n'.join(get_results(*args))
|
print '\n'.join(get_results(*args))
|
||||||
|
|
||||||
# WARNING: this function is also called by do_results. You need to set a default there
|
# WARNING: this function is also called by do_results. You need to set a default there
|
||||||
# as well when adding a new option!
|
# as well when adding a new option!
|
||||||
|
Loading…
Reference in New Issue
Block a user