From: James Troup Date: Wed, 5 Jun 2002 00:20:16 +0000 (+0000) Subject: string.join, not silly code X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3df411d2abd01de73870b3b456fb56c6e6446d9;p=dak string.join, not silly code --- diff --git a/madison b/madison index 9af18d9f..6961f818 100755 --- a/madison +++ b/madison @@ -2,7 +2,7 @@ # Display information about package(s) (suite, version, etc.) # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: madison,v 1.18 2002-05-03 16:06:45 troup Exp $ +# $Id: madison,v 1.19 2002-06-05 00:20:16 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,6 +18,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +################################################################################ + # And, lo, a great and menacing voice rose from the depths, and with # great wrath and vehemence it's voice boomed across the # land... ``hehehehehehe... that *tickles*'' @@ -168,14 +170,9 @@ def main (): suites.sort(); for suite in suites: sys.stdout.write("%10s | %10s | %13s | " % (pkg, version, suite)); - count = 0; arches = d[pkg][version][suite]; arches.sort(arch_compare); - for arch in arches: - if count > 0: - sys.stdout.write(', '); - sys.stdout.write(arch); - count = count + 1; + sys.stdout.write(string.join(arches, ", ")); sys.stdout.write('\n'); if not results: