From fef07af4644ed41b38d5b94bd6a0a6d0a2b330a2 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Wed, 12 Oct 2022 15:20:06 +0200 Subject: [PATCH] sr accept: Enable forwarding requests to the parent projects This works only with the --interactive option --- osc/commandline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index 55a9a5bd..8e30ff40 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -22,6 +22,7 @@ from pathlib import Path from urllib.parse import urlsplit from urllib.error import HTTPError +from . import _private from . import build as osc_build from . import cmdln from . import conf @@ -2673,6 +2674,10 @@ Please submit there instead, or use --nodevelproject to force direct submission. # check for devel instances after accepted requests if cmd in ['accept']: + print(rq) + if opts.interactive: + _private.forward_request(apiurl, rq, interactive=True) + sr_actions = rq.get_actions('submit') for action in sr_actions: u = makeurl(apiurl, ['/search/package'], {