osclib/accept: print todo from staging config after completion.

This commit is contained in:
Jimmy Berry 2018-01-25 10:58:52 -06:00
parent 753f6c7a6a
commit 843cc016e0
2 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,7 @@ def do_staging(self, subcmd, opts, *args):
The keys that may be set in staging configuration are:
- repo_checker-binary-whitelist[-arch]: appended to target project list
- todo: text to be printed after staging is accepted
"cleanup_rings" will try to cleanup rings content and print
out problems

View File

@ -6,6 +6,7 @@ from xml.etree import cElementTree as ET
from osc.core import change_request_state, show_package_meta, wipebinaries
from osc.core import http_GET, http_PUT, http_DELETE, http_POST
from osc.core import delete_package, search, set_devel_project
from osclib.config_command import ConfigCommand
from datetime import date
@ -144,6 +145,7 @@ class AcceptCommand(object):
self.api.accept_status_comment(project, packages)
self.api.staging_deactivate(project)
ConfigCommand(self.api).perform([project], 'todo')
return True