From 7f1d7f6258ebb9f368b608bf109b62dd4cf47081 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 25 Sep 2013 15:36:54 +0200 Subject: [PATCH] - do_request: added --no-devel option in order to disable the forwarding to the devel project (if the request is accepted) Original patch by "Dominique Leuenberger a.k.a. Dimstar" (I just renamed the option from "--nodevel" to "--no-devel"). --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index cce23231..ab60cf58 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1759,6 +1759,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='generate a diff') @cmdln.option('-u', '--unified', action='store_true', help='output the diff in the unified diff format') + @cmdln.option('--no-devel', action='store_true', + help='Do not attempt to forward to devel project') @cmdln.option('-m', '--message', metavar='TEXT', help='specify message TEXT') @cmdln.option('-t', '--type', metavar='TYPE', @@ -2207,7 +2209,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. }) f = http_GET(u) root = ET.parse(f).getroot() - if root.findall('package'): + if root.findall('package') and not opts.no_devel: print("This package instance is defined as devel are in ", end=' ') for node in root.findall('package'): project = node.get('project')