[PATCH 4/5] show tag_extra in cli list-history

Mike McLean mikem at redhat.com
Wed Jun 17 19:33:10 UTC 2015


---
 cli/koji       | 8 ++++++++
 hub/kojihub.py | 1 +
 2 files changed, 9 insertions(+)

diff --git a/cli/koji b/cli/koji
index 7968460..fd6d409 100755
--- a/cli/koji
+++ b/cli/koji
@@ -3853,6 +3853,13 @@ def _print_histline(entry, **kwargs):
             fmt = "new tag: %(tag.name)s"
         else:
             fmt = "tag deleted: %(tag.name)s"
+    elif table == 'tag_extra':
+        if edit:
+            fmt = "tag option %(key)s for tag %(tag.name)s altered"
+        elif create:
+            fmt = "added tag option %(key)s for tag %(tag.name)s"
+        else:
+            fmt = "tag option %(key)s removed for %(tag.name)s"
     elif table == 'build_target_config':
         if edit:
             fmt = "build target configuration for %(build_target.name)s updated"
@@ -3962,6 +3969,7 @@ _table_keys = {
     'user_groups' : ['user_id', 'group_id'],
     'tag_inheritance' : ['tag_id', 'parent_id'],
     'tag_config' : ['tag_id'],
+    'tag_extra' : ['tag_id', 'key'],
     'build_target_config' : ['build_target_id'],
     'external_repo_config' : ['external_repo_id'],
     'tag_external_repos' : ['tag_id', 'external_repo_id'],
diff --git a/hub/kojihub.py b/hub/kojihub.py
index d41e6b8..ca6985a 100644
--- a/hub/kojihub.py
+++ b/hub/kojihub.py
@@ -5500,6 +5500,7 @@ def query_history(tables=None, **kwargs):
         'user_groups' : ['user_id', 'group_id'],
         'tag_inheritance' : ['tag_id', 'parent_id', 'priority', 'maxdepth', 'intransitive', 'noconfig', 'pkg_filter'],
         'tag_config' : ['tag_id', 'arches', 'perm_id', 'locked', 'maven_support', 'maven_include_all'],
+        'tag_extra' : ['tag_id', 'key', 'value'],
         'build_target_config' : ['build_target_id', 'build_tag', 'dest_tag'],
         'external_repo_config' : ['external_repo_id', 'url'],
         'tag_external_repos' : ['tag_id', 'external_repo_id', 'priority'],
-- 
1.9.3



More information about the koji-devel mailing list