mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 10:42:14 +01:00
- better use standard function for submit request (adds revision by default)
This commit is contained in:
parent
ceb3265a9d
commit
09c66f1d3d
@ -2175,12 +2175,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
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':
|
||||||
r = Request()
|
rid = create_submit_request(src_project=action.tgt_project, src_package=action.tgt_package,
|
||||||
r.add_action('submit', src_project=action.tgt_project, src_package=action.tgt_package,
|
tgt_project=project, tgt_package=package,
|
||||||
tgt_project=project, tgt_package=package)
|
cgi.escape("%s (forwarded request %s from %s)", ( rq.description, reqid, rq.get_creator)))
|
||||||
r.description = cgi.escape("%s (forwarded request %s from %s)", ( rq.description, reqid, rq.get_creator))
|
print rid
|
||||||
r.create(self.get_api_url())
|
|
||||||
print r.reqid
|
|
||||||
|
|
||||||
# editmeta and its aliases are all depracated
|
# editmeta and its aliases are all depracated
|
||||||
@cmdln.alias("editprj")
|
@cmdln.alias("editprj")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user