On Tue, 2010-07-13 at 14:38 +0200, Kamil Páral wrote:
---
hooks/post-koji-build/watch-koji-builds.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hooks/post-koji-build/watch-koji-builds.py
b/hooks/post-koji-build/watch-koji-builds.py
index 694da02..1b3a17b 100755
--- a/hooks/post-koji-build/watch-koji-builds.py
+++ b/hooks/post-koji-build/watch-koji-builds.py
@@ -88,8 +88,10 @@ def new_builds_since(session, taglist, prevtime):
# No tag yet but the build is still OK - check again later
untagged_builds.append(nvr)
if opts.verbose:
- print "untagged: %s" % " ".join(untagged_builds)
- print "tagged: %s" % " ".join(tagged_builds)
+ print "untagged: %s" % " ".join(
+ sorted([nvr['nvr'] for nvr in untagged_builds]))
+ print "tagged: %s" % " ".join(
+ sorted([nvr['nvr'] for list in tagged_builds.values() for nvr in
list]))
return (tagged_builds, untagged_builds)
if __name__ == '__main__':
@@ -113,7 +115,7 @@ tags for new builds and kick off tests when new builds/packages are
found.')
if opts.verbose:
print "Looking up builds since %s (%s)" % (opts.prevtime,
time.ctime(opts.prevtime))
- print "Looking for builds with tags %s" % " ".join(taglist)
+ print "Looking for builds with tags %s" % "
".join(sorted(taglist))
# Set up the koji connection
kojiopts = {} # Possible items: user, password, debug_xmlrpc, debug..
Nice improvement.
Thanks,
James