Re: Full lintian run?
On Tue, Jun 10, 2008 at 10:06:12PM -0700, Russ Allbery wrote:
> Also, I think that packages for which one is just an uploader should get
> anchors and links at the top of the page as well.
The attached patch should fix the problems in the summary: packages are
now sorted and uploads have been included.
Index: reporting/templates/maintainer.tmpl
===================================================================
--- reporting/templates/maintainer.tmpl (revision 1404)
+++ reporting/templates/maintainer.tmpl (working copy)
@@ -22,10 +22,10 @@
{
# Show the summary only if the number of packages is within a certain
# range.
- my $num_packages = length(%packages);
+ my $num_packages = keys(%packages) + keys(%uploads);
if ($num_packages > 1 and $num_packages < 20) {
$OUT .= qq( <div id="summary">\n <ul>\n);
- foreach $source (keys (%packages)) {
+ foreach $source (sort(keys(%packages), keys(%uploads))) {
$OUT .= qq( <li><a href="#$source">$source</a></li>\n);
}
$OUT .= " </ul>\n </div>\n";
Reply to: