[Angstrom-devel] [RFC] Adding explicit date to title of autobuilder RSS

Paul Sokolovsky pmiscml at gmail.com
Wed Feb 6 18:40:51 CET 2008


Hello,

As stupid Firefox doesn't bother to render <pubDate> when dumping RSS,
I propose to add following patch to make it clear when this or that
image was built:


============================================================
--- contrib/angstrom/rss2.php
30cfd581394ae7f5e17996503a966670e246c014 +++
contrib/angstrom/rss2.php
e7777fbd2d572c613ee592f6e59c2c79731ffca0 @@ -47,7 +47,7 @@
foreach($builder_log_date as $build) $data = explode(' ', $build); 
 	$rss_xml->startElement('item');
-	$rss_xml->writeElement('title', "{$data[1]} ({$data[2]}) built
for {$data[3]}");
+	$rss_xml->writeElement('title', "{$data[1]} ({$data[2]}) built
for {$data[3]} (" . date('c', $data[0]) . ")");
$rss_xml->writeElement('link', "{$build_link_base}{$data[3]}/");
$rss_xml->writeElement('pubDate', date('r', $data[0]));

Thsi can be previewed at
http://www.angstrom-distribution.org/unstable/autobuild/rss2dated.php

I would also like to propose to drop old contrib/angstrom/rss.php
script (and possibly rename rss2.php to it)

-- 
Best regards,
 Paul                          mailto:pmiscml at gmail.com



More information about the Angstrom-distro-devel mailing list