accept_command: force to accept the staging if --force parameter is given

If --force parameter is given, it must to force to change the request state,
otherwise --force does not work if still had pending review.
This commit is contained in:
Max Lin 2017-10-31 13:27:29 +08:00
parent 9cded5cf2d
commit 6ffe02ce94

View File

@ -138,7 +138,8 @@ class AcceptCommand(object):
change_request_state(self.api.apiurl,
str(req['id']),
'accepted',
message='Accept to %s' % self.api.project)
message='Accept to %s' % self.api.project,
force=force)
self.create_new_links(self.api.project, req['package'], oldspecs)
self.api.accept_status_comment(project, packages)