From 843cc016e005a763f7896a5abb91c937e8fa7271 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Thu, 25 Jan 2018 10:58:52 -0600 Subject: [PATCH] osclib/accept: print todo from staging config after completion. --- osc-staging.py | 1 + osclib/accept_command.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/osc-staging.py b/osc-staging.py index 1c7f8ee9..b66a40cd 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -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 diff --git a/osclib/accept_command.py b/osclib/accept_command.py index a114c728..f935c872 100644 --- a/osclib/accept_command.py +++ b/osclib/accept_command.py @@ -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