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

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



Your message dated Tue, 31 Oct 2017 14:48:52 +0000
with message-id <E1e9XqW-00015L-NA@moszumanska.debian.org>
and subject line Debian WWW CVS commit by dmn fixes #880201
has caused the Debian Bug report #880201,
regarding www.debian.org: Release notes formats (html, pdf, txt) are shown in different order for each release
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
880201: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880201
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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.

Former releases (not built dynamically anymore) also present the problem:

https://www.debian.org/releases/wheezy/releasenotes
txt html pdf
https://www.debian.org/releases/squeeze/releasenotes
txt pdf html
https://www.debian.org/releases/lenny/releasenotes
html pdf txt

but since they belong to releases that reached their end of life, maybe their
releases notes pages can stay like that.




-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE=es:en_GB (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
This bug was closed by dmn in the webwml CVS repository:

https://www.debian.org/devel/website/using_cvs

Note that it might take some time until www.debian.org has been updated.

CVSROOT:	/cvs/webwml
Module name:	webwml
Changes by:	dmn	17/10/31 14:48:52

Modified files:
	russian/doc    : user-manuals.wml 

Log message:
	russian translation update

Modified files:
	english/template/debian: release.wml 

Log message:
	sort release notes formats
	
	due to Perl's hash key order randomization feature, the keys come out
	in a pseudo-random order every time. adding 'sort' sorts the keys and
	makes the order stable.
	
	Closes: #880201 -- www.debian.org: Release notes formats (html, pdf, txt) are
	                   shown in different order for each release

--- End Message ---

Reply to: