From f6d74855967c907e3202d2e90f26c0638c2a6edb Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 14 Mar 2024 16:16:47 +0100 Subject: [PATCH] Fix 'service remoterun prj/pac' --- osc/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index d7d63f60..ae5ae11e 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7747,12 +7747,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)