From a760e2bd394392d18e62f64da51dbf92925ae14c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 4 Feb 2019 13:07:59 +0100 Subject: [PATCH] Return exitcode when "osc results" is falling through prjresults Otherwise a failure from osc prjresults does not propagate up. --- osc/commandline.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index acc2ca9f..30d2824e 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5203,8 +5203,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. opts.vertical = None opts.show_non_building = None opts.show_excluded = None - self.do_prjresults('prjresults', opts, *args) - return + return self.do_prjresults('prjresults', opts, *args) if opts.xml and opts.csv: 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: opts.nopreinstallimage = True - + print('Building %s for %s/%s' % (args[2], args[0], args[1])) if not opts.host: return osc.build.main(self.get_api_url(), opts, args)