From: Guillem Jover Date: Fri, 16 Jun 2006 05:42:18 +0000 (+0000) Subject: Print update-alternatives '--config' listing layout evenly spaced. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7143ec9d6b10b21a2fdbd1bcd6626e1e65bf64;p=dpkg Print update-alternatives '--config' listing layout evenly spaced. Closes: #325895 --- diff --git a/ChangeLog b/ChangeLog index b7f2efb8..73f46e78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-16 Guillem Jover + + * scripts/update-alternatives.pl (config_message): Print '--config' + listing layout evenly spaced. + 2006-06-07 Guillem Jover * scripts/dpkg-scansources.pl: Remove invalid comment mentioning diff --git a/debian/changelog b/debian/changelog index d34f3ea6..2dab6b65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ dpkg (1.13.22~) UNRELEASED; urgency=low introduced in that version. Thanks to Sergio Gelato. Closes: #370536 * Add '.bzrtags' directory to default dpkg-source -i regex. Suggested by Adeodato Simó. Closes: #370392 + * Print update-alternatives '--config' listing layout evenly spaced. + Closes: #325895 [ Updated dpkg Translations ] * Romanian (Eddy Petrişor). diff --git a/scripts/update-alternatives.pl b/scripts/update-alternatives.pl index 9e9c0a70..b482526f 100755 --- a/scripts/update-alternatives.pl +++ b/scripts/update-alternatives.pl @@ -555,7 +555,7 @@ sub config_message { "-----------------------------------------------\n"), $#versions+1, $name); for ($i=0; $i<=$#versions; $i++) { - printf(STDOUT "%s%s %s %s\n", + printf(STDOUT "%s%s %8s %s\n", (readlink("$altdir/$name") eq $versions[$i]) ? '*' : ' ', ($best eq $versions[$i]) ? '+' : ' ', $i+1, $versions[$i]);