1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 05:26:16 +01:00

- 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" <dimstar@opensuse.org>
(I just renamed the option from "--nodevel" to "--no-devel").
This commit is contained in:
Marcus Huewe 2013-09-25 15:36:54 +02:00
parent f5ec5734e3
commit 7f1d7f6258

View File

@ -1759,6 +1759,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='generate a diff') help='generate a diff')
@cmdln.option('-u', '--unified', action='store_true', @cmdln.option('-u', '--unified', action='store_true',
help='output the diff in the unified diff format') 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', @cmdln.option('-m', '--message', metavar='TEXT',
help='specify message TEXT') help='specify message TEXT')
@cmdln.option('-t', '--type', metavar='TYPE', @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) f = http_GET(u)
root = ET.parse(f).getroot() 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=' ') print("This package instance is defined as devel are in ", end=' ')
for node in root.findall('package'): for node in root.findall('package'):
project = node.get('project') project = node.get('project')