1
0
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:
Marcus Huewe 2010-12-06 21:44:38 +01:00
parent 30363a5db9
commit 15178b6e4f

View File

@ -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 ]
if opts.xml:
return show_results_meta(*args)
print show_results_meta(*args)
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:
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
# as well when adding a new option!