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

[dak/master] add guid element (same as link) to make feed validator happy



---
 tools/queue_rss.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/queue_rss.py b/tools/queue_rss.py
index fb56e18..7b33121 100755
--- a/tools/queue_rss.py
+++ b/tools/queue_rss.py
@@ -113,14 +113,17 @@ def add_rss_item(status, msg, direction):
     description = "<pre>Description: %s\nChanges: %s\n</pre>" % \
             (utf2ascii(cgi.escape(msg['Description'])), utf2ascii(cgi.escape(msg['Changes'])))
 
+    link = "http://ftp-master.debian.org/new/%s_%s.html"; % \
+            (msg['Source'], msg['Version'])
+
     feed.items.insert(0,
         PyRSS2Gen.RSSItem(
             title,
             pubDate = pubdate,
             description = description,
             author = utf2ascii(cgi.escape(msg['Maintainer'])),
-            link = "http://ftp-master.debian.org/new/%s_%s.html"; % \
-                    (msg['Source'], msg['Version'])
+            link = link,
+            guid = link
         )
     )
 
-- 
1.5.6.5


Reply to: