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:
commit
35f1c91f46
@ -7749,12 +7749,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
print(f"WARNING: Command '{command}' is obsolete,\n"
|
print(f"WARNING: Command '{command}' is obsolete,\n"
|
||||||
"please convert your _service to use 'manual' and then 'manualrun/mr' instead.", file=sys.stderr)
|
"please convert your _service to use 'manual' and then 'manualrun/mr' instead.", file=sys.stderr)
|
||||||
|
|
||||||
if len(args) == 1:
|
if command in remote_commands:
|
||||||
singleservice = args.pop(0)
|
|
||||||
elif len(args) in (0, 2) and command in remote_commands:
|
|
||||||
project, package = pop_project_package_from_args(
|
project, package = pop_project_package_from_args(
|
||||||
args, default_project=".", default_package=".", package_is_optional=False
|
args, default_project=".", default_package=".", package_is_optional=False
|
||||||
)
|
)
|
||||||
|
elif len(args) == 1:
|
||||||
|
singleservice = args.pop(0)
|
||||||
|
|
||||||
ensure_no_remaining_args(args)
|
ensure_no_remaining_args(args)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user