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:
commit
fed9141e91
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user