mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 18:26:15 +01:00
cb6eaf3720
Without this patch, running an individual service that has parameters defined in the _service file fails: $ osc service run obs_scm Please specify valid --scm=... options Aborting: service call failed: /usr/lib/obs/service/obs_scm --outdir [snipped] This is because although the service is defined in the _service file and the "scm" parameter is set in it, the service wasn't being found in the data structure and so the service executable wasn't being called with the parameters supplied in the _service file. This patch corrects the issue with the services data structure so that the service data isn't overridden if it is defined in the _service file. A side effect of this correction for services defined in the _service file is that instead of overriding the service mode with '', the mode is taken from the _service file. When using the "run" command, this would mean that the call mode of None may not be in agreement with the service mode defined in the file, e.g. "manual", and so the "run" command would no longer cause it to run when it would before. We can take this opportunity to define this as the correct behavior - the "run" command now only runs services with "trylocal", "localonly", or no mode set - and also ensure that other call mode commands result in sensible behavior when called with a service name, for instance "osc service manualrun download_files" will run only services with mode="manual" and name="download"files" instead of all services with mode="manual". Additionally, services that aren't defined in the _service file can be called with a call mode command and will use that call mode rather than None. |
||
---|---|---|
.. | ||
util | ||
__init__.py | ||
.gitignore | ||
babysitter.py | ||
build.py | ||
checker.py | ||
cmdln.py | ||
commandline.py | ||
conf.py | ||
core.py | ||
credentials.py | ||
fetch.py | ||
grabber.py | ||
meter.py | ||
OscConfigParser.py | ||
oscerr.py | ||
oscssl.py | ||
oscsslexcp.py |