FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 03-10-2010, 03:44 PM
Dennis Gregorovic
 
Default Use tagHistory to grab all tags where the package is tagged

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
 

Thread Tools




All times are GMT. The time now is 04:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org