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

Bug#382098: www.debian.org: DWN RDF feed broken <- fixed



tags 382098 patch
thanks bts

On Tue, Aug 08, 2006 at 10:52:15PM +0200, Martin Zobel-Helas wrote:
> Package: www.debian.org
> Severity: important
> 
> The DWN RDF feed is broken. It does not contain anything below 
> the statement: 
> n packages have been removed from the Debian archive during the past week:

Hi,

Actually, the part of the dwn about packages changes (removed, orphaned,
added, updated due to security reasons) is supposed to be ignored in the
current script webwml/english/News/weekly/dwn-to-rdf.pl.

But the removal case has been forgotten, hence here is a patch which
also removes the "removed packages" section from the rdf.

The fixed script will be commited soon in the CVS.

Regards,

-- 
Simon Paillard
Index: dwn-to-rdf.pl
===================================================================
RCS file: /cvs/webwml/webwml/english/News/weekly/dwn-to-rdf.pl,v
retrieving revision 1.4
diff -u -r1.4 dwn-to-rdf.pl
--- dwn-to-rdf.pl	15 Aug 2006 09:57:02 -0000	1.4
+++ dwn-to-rdf.pl	18 Sep 2006 20:13:44 -0000
@@ -135,7 +135,7 @@
 	} elsif (/(.*)<\/p>/) {
 	    $body .= $1;
 
-	    if ($body !~ /(newpkg_main|<code>wnpp-alert<\/code>|href="mailto:dwn\@debian.org";)/
+	    if ($body !~ /(newpkg_main|removals.txt|<code>wnpp-alert<\/code>|href="mailto:dwn\@debian.org";)/
 		&& $headline ne "Security Updates"			# English
 		&& $headline ne "Mises à jour de sécurité"		# French
 		&& $headline ne "¡iŠw¥þ§ó·s¡j"				# Chinese

Reply to: