[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#880201: www.debian.org: Release notes formats (html, pdf, txt) are shown in different order for each release



-=| Laura Arjona Reina, 30.10.2017 15:49:34 +0100 |=-
> Package: www.debian.org
> Severity: minor
> 
> The order of the formats in releases notes is different for every release:
> 
> https://www.debian.org/releases/jessie/releasenotes
> 
> shows the release notes available ordered by arch and txt pdf html
> 
> https://www.debian.org/releases/stretch/releasenotes
> shows the release notes available ordered by arch and pdf html txt
> 
> https://www.debian.org/releases/buster/releasenotes not yet available
> 
> All those pages are built using the Perl sub permute_as_matrix_new
> present in
> https://anonscm.debian.org/viewvc/webwml/webwml/english/template/debian/release.wml?view=markup
> 
> Maybe the cause is L176 of that script:
> 
>  foreach $ext (keys %formats) {
> 
> Does the "keys" function return the values always in the same order? (not sure
> about this point,
> I've read http://perldoc.perl.org/functions/keys.html but I didn't understand
> it very well, and I'm not
> a Perl programmer).
> 
> If this is the issue, the solution would be to change that line to 
> something sorting the output of keys.

Yep, this needs to become "foreach $ext (sort keys %formats) {"

I have just committed the fix.


Cheers,
    dam


Reply to: