[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-buildsys-list
Subject: [PATCH] Use tagHistory to grab all tags where the package is tagged
From: Dennis Gregorovic <dgregor () redhat ! com>
Date: 2010-03-10 16:44:18
Message-ID: 1268239458-19005-1-git-send-email-dgregor () redhat ! com
[Download RAW message or body]
From: dennis <dennis@thinkpad.(none)>
---
cli/koji | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/cli/koji b/cli/koji
index bd8a031..e58d79d 100755
--- a/cli/koji
+++ b/cli/koji
@@ -1870,7 +1870,13 @@ def anon_handle_latest_by_tag(options, session, args):
pathinfo = koji.PathInfo()
for pkg in args:
- tags = [x['name'] for x in session.listTags(package=pkg)]
+ hist = session.tagHistory(package=pkg)
+ tags = {}
+ for x in hist:
+ if not x['active']:
+ continue
+ tags[x['tag_name']] = True
+ tags = tags.keys()
tags.sort()
for tag in tags:
--
1.6.6.1
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic