Ubuntu’s rmadison should have wider column defaults

Bug #315833 reported by chastell on 2009-01-10
4
Affects Status Importance Assigned to Milestone
madison-lite (Ubuntu)
Low
Colin Watson

Bug Description

Binary package hint: devscripts

It seems the minimal column widths in rmadison’s output are fixed. The version column has a width of 10 characters (plus padding), the repository column 13 (plus padding). For Ubuntu these two columns should be wider (while the package name column width can be safely made smaller, even zero, as the package name will always expand it in an uniform way).

Basically, the defaults which work for Debian do not work for Ubuntu, while the package name column is unnecessarily wide:

shot@devielle:~$ rmadison ufraw
debian:
     ufraw |     0.10-1 |     etch-m68k | source, m68k
     ufraw |     0.10-1 |        stable | source, alpha, amd64, …
     ufraw |     0.13-1 |       testing | source
     ufraw |     0.13-1 |      unstable | source
     ufraw |  0.13-1+b2 |       testing | alpha, amd64, arm, …
     ufraw |  0.13-1+b2 |      unstable | alpha, amd64, arm, …
     ufraw |     0.15-1 |  experimental | source, alpha, amd64, …
ubuntu:
     ufraw | 0.5+cvs20051021-1 | dapper/universe | source, amd64, i386, powerpc
     ufraw | 0.11-2ubuntu3 | gutsy/universe | source, amd64, i386, powerpc
     ufraw | 0.13-1build1 | hardy/universe | source, amd64, i386
     ufraw | 0.13-1build2 | intrepid/universe | source, amd64, i386
     ufraw |   0.14.1-2 | jaunty/universe | source, amd64, i386

Related branches

chastell (chastell) on 2009-01-10
description: updated
description: updated
description: updated
description: updated
Colin Watson (cjwatson) wrote :

rmadison just passes the output straight through from madison-lite on the server, so it's madison-lite that would need to be changed.

Colin Watson (cjwatson) wrote :

Incidentally, the package name will not always be a uniform width. Consider -S, or just passing multiple package names at once.

Colin Watson (cjwatson) on 2010-11-05
Changed in madison-lite (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Adam Conrad (adconrad) wrote :

There's no reason this needs to be about default column widths, but rather just about expanding columns to match the largest member of the set. A better example than the above one is this, where the versions are enormous:

(base)adconrad@cthulhu:~$ rmadison -uubuntu,debian -aamd64 firefox iceweasel
ubuntu:
   firefox | 3.6.3+nobinonly-0ubuntu4 | lucid | amd64
   firefox | 11.0+build1-0ubuntu4 | precise | amd64
   firefox | 16.0.1+build1-0ubuntu1 | quantal | amd64
   firefox | 20.0+build1-0ubuntu0.10.04.3 | lucid-security | amd64
   firefox | 20.0+build1-0ubuntu0.10.04.3 | lucid-updates | amd64
   firefox | 20.0+build1-0ubuntu2 | raring | amd64
   firefox | 24.0+build1-0ubuntu1 | saucy | amd64
   firefox | 25.0+build3-0ubuntu0.13.10.1 | trusty | amd64
   firefox | 25.0.1+build1-0ubuntu0.12.04.1 | precise-security | amd64
   firefox | 25.0.1+build1-0ubuntu0.12.04.1 | precise-updates | amd64
   firefox | 25.0.1+build1-0ubuntu0.12.10.1 | quantal-security | amd64
   firefox | 25.0.1+build1-0ubuntu0.12.10.1 | quantal-updates | amd64
   firefox | 25.0.1+build1-0ubuntu0.13.04.1 | raring-security | amd64
   firefox | 25.0.1+build1-0ubuntu0.13.04.1 | raring-updates | amd64
   firefox | 25.0.1+build1-0ubuntu0.13.10.1 | saucy-security | amd64
   firefox | 25.0.1+build1-0ubuntu0.13.10.1 | saucy-updates | amd64
   firefox | 26.0~b6+build1-0ubuntu1 | trusty-proposed | amd64
debian:
 iceweasel | 3.5.16-20 | squeeze-security | amd64
 iceweasel | 3.5.16-20 | squeeze | amd64
 iceweasel | 10.0.12esr-1~bpo60+1 | squeeze-backports | amd64
 iceweasel | 17.0.9esr-1~deb7u1 | wheezy | amd64
 iceweasel | 17.0.9esr-1~deb7u1 | jessie | amd64
 iceweasel | 17.0.10esr-1~deb7u1 | wheezy-security | amd64
 iceweasel | 24.1.0esr-1 | sid | amd64
 iceweasel | 25.0-1 | experimental | amd64

Adam Conrad (adconrad) wrote :

THANK YOU, HTML, FOR COMPLETELY DESTROYING THE VISUAL.

I assure you that if you run that command by hand, all the ones from Debian have uniform column widths. :P

Trent W. Buck (twb) wrote : subscribe

 subscribe

Colin Watson (cjwatson) on 2013-11-26
Changed in madison-lite (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → In Progress
Colin Watson (cjwatson) wrote :

I've uploaded a fixed version to Debian and deployed it on the backend for "rmadison -u ubuntu". This bug will be closed when the fixed version is auto-synced to trusty.

Changed in madison-lite (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package madison-lite - 0.18

---------------
madison-lite (0.18) unstable; urgency=low

  * Calculate optimal column sizes in the same way as Debian's madison.cgi,
    and otherwise tweak output formatting to match (LP: #315833).

 -- Colin Watson <email address hidden> Tue, 26 Nov 2013 10:20:59 +0000

Changed in madison-lite (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers