Debian Bug report logs - #510894
www.debian.org: DWN Index for 2007 also shows 2006 issues

Package: www.debian.org; Maintainer for www.debian.org is Debian WWW Team <debian-www@lists.debian.org>;

Reported by: Helge Kreutzmann <debian@helgefjell.de>

Date: Mon, 5 Jan 2009 19:30:04 UTC

Severity: minor

Done: David Prévot <david@tilapin.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#510894; Package www.debian.org. (Mon, 05 Jan 2009 19:30:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helge Kreutzmann <debian@helgefjell.de>:
New Bug report received and forwarded. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Mon, 05 Jan 2009 19:30:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Helge Kreutzmann <debian@helgefjell.de>
To: submit@bugs.debian.org
Subject: www.debian.org: DWN Index for 2007 also shows 2006 issues
Date: Mon, 5 Jan 2009 20:28:28 +0100
[Message part 1 (text/plain, inline)]
Package: www.debian.org
Severity: minor

Looking at http://www.debian.org/News/weekly/2007/index I see the
latest issue from 03 Jul 2007 up to 26 Sep 2006, but since this is a
yearly index page for 2007, it should stop at 23 Jan 2007.

-- 
      Dr. Helge Kreutzmann                     debian@helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#510894; Package www.debian.org. (Fri, 09 Jan 2009 16:21:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gerfried Fuchs <rhonda@deb.at>:
Extra info received and forwarded to list. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Fri, 09 Jan 2009 16:21:03 GMT) Full text and rfc822 format available.

Message #10 received at 510894@bugs.debian.org (full text, mbox):

From: Gerfried Fuchs <rhonda@deb.at>
To: Helge Kreutzmann <debian@helgefjell.de>, 510894@bugs.debian.org
Subject: Re: Bug#510894: www.debian.org: DWN Index for 2007 also shows 2006 issues
Date: Fri, 09 Jan 2009 17:19:38 +0100
[Message part 1 (text/plain, inline)]
Am Montag, den 05.01.2009, 20:28 +0100 schrieb Helge Kreutzmann:
> Package: www.debian.org
> Severity: minor
> 
> Looking at http://www.debian.org/News/weekly/2007/index I see the
> latest issue from 03 Jul 2007 up to 26 Sep 2006, but since this is a
> yearly index page for 2007, it should stop at 23 Jan 2007.

 Hmm, right. That's a "feature" of the used script to include at least
10 entries. Not sure wether it could be tweaked through some option,
changing this means that it might break in other places, so be careful
with any testing on who wants to tackle it (I don't have the time right
now, but wanted to add the informations about the cause nevertheless).

 So long. :)
Rhonda
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian WWW Team <debian-www@lists.debian.org>:
Bug#510894; Package www.debian.org. (Wed, 23 Mar 2011 21:18:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to victory <victory.deb@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian WWW Team <debian-www@lists.debian.org>. (Wed, 23 Mar 2011 21:18:05 GMT) Full text and rfc822 format available.

Message #15 received at 510894@bugs.debian.org (full text, mbox):

From: victory <victory.deb@gmail.com>
To: debian-www@lists.debian.org, 510894@bugs.debian.org
Subject: Re: Bug#510894: www.debian.org: DWN Index for 2007 also shows 2006 issues
Date: Thu, 24 Mar 2011 06:14:49 +0900
[Message part 1 (text/plain, inline)]
Tags: patch

past years only want the same year's and don't want to include previous year's.
only CURRENT year wants more entry.

	open(CURRENT, "CURRENT-ISSUE-IS") or open(CURRENT, "$eng_dir/CURRENT-ISSUE-IS") or return '';
	my $currentissue=<CURRENT>;# </CURRENT>
	chomp $currentissue;
	my ($currentyear)=$currentissue=~m:^(\d+)/:;
	$currentissue=~s:^\d+/::;
	close CURRENT;

so, $currentyear is the year where "CURRENT-ISSUE-IS" says:
this can be used to determine if this is the CURRENT year or not.

-- 
victory
no need to CC me :-)

--- /deb/webwml/english/template/debian/weeklynews/index.1.27.wml	Mon Aug 29 07:09:59 2005
+++ /deb/webwml/english/template/debian/weeklynews/index.wml	Thu Mar 24 05:42:14 2011
@@ -61,11 +61,11 @@
 		last if ($stopat ne '' && $count >= $stopat);
 	}
 	close DIR;
 
 	# Get more if necessary.
-	if ($count < 10 && $reccount < 3 ) {
+	if ($year == $currentyear && $count < 10 && $reccount < 3 ) {
 		$str.=get_weeklynews_list($year - 1, $eng_dir, $match, $noyear, $count, 10, $reccount++);
 	}
 	
 	return $str;
 }
[dwn.txt (text/plain, attachment)]

Reply sent to David Prévot <david@tilapin.org>:
You have taken responsibility. (Mon, 25 Apr 2011 14:06:13 GMT) Full text and rfc822 format available.

Notification sent to Helge Kreutzmann <debian@helgefjell.de>:
Bug acknowledged by developer. (Mon, 25 Apr 2011 14:06:13 GMT) Full text and rfc822 format available.

Message #20 received at 510894-done@bugs.debian.org (full text, mbox):

From: David Prévot <david@tilapin.org>
To: 510894-done@bugs.debian.org
Subject: Re: Bug#510894: www.debian.org: DWN Index for 2007 also shows 2006 issues
Date: Mon, 25 Apr 2011 10:04:25 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 23/03/2011 17:14, victory a écrit :
> Tags: patch
> 
> past years only want the same year's and don't want to include previous year's.
> only CURRENT year wants more entry.

Great, thanks for digging it, I also applied your patch to
english/template/debian/projectnews/index.wml so it works also for the
2009 (but it doesn't work for the current year, of course, not sure it's
really an issue anyway, let's draft another DPN to grow this list).

Regards

David

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJNtX9oAAoJELgqIXr9/gnyhWQQAKEp5Yv7uSWuGdRZvGOUKSt1
by0St5hi+Bk4vPDlFH9zjWIj5dI2r/X/+mnTb6lcrdJskhdnebHSihU+1GhBwegj
ENJaLU1UEYHGi8+M3jQ3X97WZ8xckSXOGtleGwsR9pqt4dSdvcnjyQ6NRNpRuYnU
l1JkRyEvV4bHEsKa9XKCBjIMZei2qfaKVY11cXB57CenZlissVh8fhC0fKIF9MOK
tduU5KVc9Iex5lU+Kt2wGx2hYdefgYFYcYSA3tsFDdqdUPcvHNxEtHwOCEC59LHZ
reu0OwO8n/6oXIURhU8bKdT4m9pqc5T01EaofcFN2rRXsgGpZTlyOUSVDJq8R2SU
wUWQuzvJ/Buv9uxONFVbM7OOydYENlBGdn6V5gO9UxVxE2vtxnnEPWrrmy/9Zi1k
9dbu/bPOGQ9V+0Zd3ma8lI/JBDhLC0XeMhwWzFU6VO2bF1oV9H7JrWbjc5po+VOF
reFaMw61QehYt7L48r7fAJF8Zj9MkBlh2kEF/Xdyh2/+nspV6lRCpK9o1rfRXSsH
3jE2ROuvZ+4nsCnsliv7F8OUAPf7W6OeYbzFcgF2MikdFS5syEDNN7WkQrg5Jo70
Ls/owTj8DbXWifQXRmoDtP48cJNLHRxY+Y5HLHt/Z24LOxyYYInsvj9qciOvVm8l
P7L6FNL1EzVTxKeJvGPX
=GAmu
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 24 May 2011 07:39:17 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 16:49:42 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.