mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
Return exitcode when "osc results" is falling through prjresults
Otherwise a failure from osc prjresults does not propagate up.
This commit is contained in:
parent
555efc845f
commit
a760e2bd39
@ -5203,8 +5203,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
opts.vertical = None
|
opts.vertical = None
|
||||||
opts.show_non_building = None
|
opts.show_non_building = None
|
||||||
opts.show_excluded = None
|
opts.show_excluded = None
|
||||||
self.do_prjresults('prjresults', opts, *args)
|
return self.do_prjresults('prjresults', opts, *args)
|
||||||
return
|
|
||||||
|
|
||||||
if opts.xml and opts.csv:
|
if opts.xml and opts.csv:
|
||||||
raise oscerr.WrongOptions("--xml and --csv are mutual exclusive")
|
raise oscerr.WrongOptions("--xml and --csv are mutual exclusive")
|
||||||
@ -6335,7 +6334,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
if opts.preload:
|
if opts.preload:
|
||||||
opts.nopreinstallimage = True
|
opts.nopreinstallimage = True
|
||||||
|
|
||||||
print('Building %s for %s/%s' % (args[2], args[0], args[1]))
|
print('Building %s for %s/%s' % (args[2], args[0], args[1]))
|
||||||
if not opts.host:
|
if not opts.host:
|
||||||
return osc.build.main(self.get_api_url(), opts, args)
|
return osc.build.main(self.get_api_url(), opts, args)
|
||||||
|
Loading…
Reference in New Issue
Block a user