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

- support "serveronly" source service

This commit is contained in:
Adrian Schröter 2011-11-22 14:47:11 +01:00
parent 49cdfa4fe3
commit ce1bcee552
2 changed files with 4 additions and 2 deletions

View File

@ -3702,7 +3702,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('-v', '--verbose', default=False, action="store_true", @cmdln.option('-v', '--verbose', default=False, action="store_true",
help='Run the source services with verbose information') help='Run the source services with verbose information')
@cmdln.option('--skip-local-service-run', default=False, action="store_true", @cmdln.option('--skip-local-service-run', default=False, action="store_true",
help='Skip service run of \'localonly\' or \'trylocal\' configured source services') help='Skip service run of configured source services for local run')
def do_commit(self, subcmd, opts, *args): def do_commit(self, subcmd, opts, *args):
"""${cmd_name}: Upload content to the repository server """${cmd_name}: Upload content to the repository server
@ -5214,7 +5214,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
run r run defined services locally, it takes an optional parameter to run only a run r run defined services locally, it takes an optional parameter to run only a
specified source service. In case paramteres exists for this one in _service file specified source service. In case paramteres exists for this one in _service file
they are used. they are used.
disabledrun dr run only disabled services locally and store files as local created disabledrun dr run disabled or server side only services locally and store files as local created
remoterun rr trigger a re-run on the server side remoterun rr trigger a re-run on the server side
${cmd_option_list} ${cmd_option_list}

View File

@ -331,6 +331,8 @@ class Serviceinfo:
for service in allservices: for service in allservices:
if singleservice and service['name'] != singleservice: if singleservice and service['name'] != singleservice:
continue continue
if service['mode'] == "serveronly" and callmode != "disabled":
continue
if service['mode'] == "disabled" and callmode != "disabled": if service['mode'] == "disabled" and callmode != "disabled":
continue continue
if service['mode'] != "disabled" and callmode == "disabled": if service['mode'] != "disabled" and callmode == "disabled":