| |
@@ -1608,10 +1608,10 @@
|
| |
is_protected = False
|
| |
last_latest = None
|
| |
tags = {}
|
| |
- for entry in session.tagHistory(build=binfo['id']):
|
| |
- #we used tagHistory rather than listTags so we can consider tags
|
| |
+ for entry in session.queryHistory(build=binfo['id'])['tag_listing']:
|
| |
+ #we used queryHistory rather than listTags so we can consider tags
|
| |
#that the build was recently untagged from
|
| |
- tags.setdefault(entry['tag_name'], 1)
|
| |
+ tags.setdefault(entry['tag.name'], 1)
|
| |
if options.debug:
|
| |
print("Tags: %s" % list(tags.keys()))
|
| |
for tag_name in tags:
|
| |
@@ -1630,7 +1630,7 @@
|
| |
continue
|
| |
#in order to determine how recently this build was latest, we have
|
| |
#to look at the tagging history.
|
| |
- hist = session.tagHistory(tag=tag_name, package=binfo['name'])
|
| |
+ hist = session.queryHistory(tag=tag_name, package=binfo['name'])['tag_listing']
|
| |
if not hist:
|
| |
#really shouldn't happen
|
| |
raise koji.GenericError("No history found for %s in %s" % (nvr, tag_name))
|
| |
@@ -3886,6 +3886,9 @@
|
| |
parser.add_option("--tag", help=_("Only show data for a specific tag"))
|
| |
parser.add_option("--all", action="store_true", help=_("Allows listing the entire global history"))
|
| |
(options, args) = parser.parse_args(args)
|
| |
+ koji.util.deprecated("list-tag-history is deprecated and will be removed in a future version. "
|
| |
+ "See: https://pagure.io/koji/issue/836")
|
| |
+
|
| |
if len(args) != 0:
|
| |
parser.error(_("This command takes no arguments"))
|
| |
assert False # pragma: no cover
|
| |