1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-02 09:46:16 +01:00

fix osc service exit code

Commands like "osc service disabledrun" would always return exitcode 0
even when the source service failed.  This broke any scripts which
wrapped around osc service.
This commit is contained in:
Adam Spiers 2014-09-30 12:51:13 +01:00
parent e44a452d3e
commit e1cdf86bdf

View File

@ -6063,7 +6063,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif command == "disabledrun" or command == "dr": elif command == "disabledrun" or command == "dr":
mode = "disabled" mode = "disabled"
p.run_source_services(mode, singleservice) return p.run_source_services(mode, singleservice)
@cmdln.option('-a', '--arch', metavar='ARCH', @cmdln.option('-a', '--arch', metavar='ARCH',
help='trigger rebuilds for a specific architecture') help='trigger rebuilds for a specific architecture')