1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

Improve 'service' command by printing names of running services

This commit is contained in:
Daniel Mach 2024-05-09 15:16:59 +02:00
parent eb7542cd98
commit 95840a42ce

View File

@ -229,6 +229,7 @@ class Serviceinfo:
raise oscerr.PackageNotInstalled(f"obs-service-{cmd[0]}")
cmd[0] = "/usr/lib/obs/service/" + cmd[0]
cmd = cmd + ["--outdir", temp_dir]
output.print_msg(f"Running source_service '{service['name']}' ...", print_to="stdout")
output.print_msg("Run source service:", " ".join(cmd), print_to="verbose")
r = run_external(*cmd)