Merge pull request #1233 from nilxam/force_must_be_force

accept_command: force to accept the staging if --force parameter is given
This commit is contained in:
Max Lin 2017-11-02 14:57:26 +08:00 committed by GitHub
commit ab21d5f0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)