1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-11 07:06:16 +01:00

Merge pull request #1211 from adrianschroeter/services

fix manual run of source service
This commit is contained in:
Daniel Mach 2023-01-16 10:27:52 +01:00 committed by GitHub
commit fed9141e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -7015,6 +7015,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
log = '\n'.join(get_commitlog(apiurl, project, package, rev, format, opts.meta, opts.deleted, rev_upper))
run_pager(log)
@cmdln.option('-v', '--verbose', action='store_true',
help='verbose run of local services for debugging purposes')
def do_service(self, subcmd, opts, *args):
"""
Handle source services
@ -7106,7 +7108,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif command in ("runall", "ra"):
mode = "all"
return p.run_source_services(mode, singleservice)
return p.run_source_services(mode, singleservice, opts.verbose)
@cmdln.option('-a', '--arch', metavar='ARCH',
help='trigger rebuilds for a specific architecture')

View File

@ -464,6 +464,9 @@ class Serviceinfo:
allservices = [data]
elif singleservice:
allservices = [s for s in allservices if s['name'] == singleservice]
# set the right called mode or the service would be skipped below
for s in allservices:
s['mode'] = callmode
if not allservices:
# short-circuit to avoid a potential http request in vc_export_env