1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- better use standard function for submit request (adds revision by default)

This commit is contained in:
Adrian Schröter 2012-06-26 17:48:39 +02:00
parent ceb3265a9d
commit 09c66f1d3d

View File

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