1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 08:56:13 +01:00

Merge pull request #1520 from dmach/fix-service-remoterun

Fix 'service remoterun prj/pac'
This commit is contained in:
Daniel Mach 2024-03-24 21:53:30 +01:00 committed by GitHub
commit 35f1c91f46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7749,12 +7749,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print(f"WARNING: Command '{command}' is obsolete,\n"
"please convert your _service to use 'manual' and then 'manualrun/mr' instead.", file=sys.stderr)
if len(args) == 1:
singleservice = args.pop(0)
elif len(args) in (0, 2) and command in remote_commands:
if command in remote_commands:
project, package = pop_project_package_from_args(
args, default_project=".", default_package=".", package_is_optional=False
)
elif len(args) == 1:
singleservice = args.pop(0)
ensure_no_remaining_args(args)