1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

- default to forward submit requests

This commit is contained in:
Adrian Schröter 2012-06-27 10:33:57 +02:00
parent 6ad15b3832
commit d6aed9858d

View File

@ -2173,12 +2173,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print project, print project,
if package != action.tgt_package: if package != action.tgt_package:
print "/", package, print "/", package,
repl = raw_input('\nForward this submit to it? (y/n)') repl = raw_input('\nForward this submit to it? ([y]/n)')
if repl.lower() == 'y': if repl.lower() == 'y' or repl == '':
rid = create_submit_request(src_project=action.tgt_project, src_package=action.tgt_package, msg = cgi.escape("%s (forwarded request %s from %s)" % ( rq.description, reqid, rq.get_creator))
tgt_project=project, tgt_package=package, rid = create_submit_request(apiurl, action.tgt_project, action.tgt_package,
cgi.escape("%s (forwarded request %s from %s)", ( rq.description, reqid, rq.get_creator))) project, package, msg)
print rid print "New request #", rid
# editmeta and its aliases are all depracated # editmeta and its aliases are all depracated
@cmdln.alias("editprj") @cmdln.alias("editprj")