X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=madison;h=6961f818f0e67906558db2d5a80edbd10f69c0c0;hb=012c7585d4a39798f35a487eda5110ff653de133;hp=f32157b3892bf813a2db76b8855ce1ebdd3da414;hpb=50c3a3dfa86c10a3b7eae0f887912605275b518e;p=dak.git diff --git a/madison b/madison index f32157b3..6961f818 100755 --- a/madison +++ b/madison @@ -1,8 +1,8 @@ #!/usr/bin/env python # Display information about package(s) (suite, version, etc.) -# Copyright (C) 2000, 2001 James Troup -# $Id: madison,v 1.17 2002-03-29 15:58:02 troup Exp $ +# Copyright (C) 2000, 2001, 2002 James Troup +# $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: