1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00

fix manual run of source service

A service explicit called via singlerun could get skipped otherwise,
if the service is defined with a different mode.

eg. running

  osc service mr download_files

to update and merge files after a version update, but the project has a
global download_files service configured for validation.
This commit is contained in:
Adrian Schröter 2023-01-10 08:41:23 +01:00 committed by Daniel Mach
parent c1f0cfa1b7
commit a292e2b6ab

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