]> err.no Git - dak/commitdiff
add guid element (same as link) to make feed validator happy
authorFilippo Giunchedi <filippo@esaurito.net>
Fri, 27 Mar 2009 19:14:47 +0000 (20:14 +0100)
committerFilippo Giunchedi <filippo@esaurito.net>
Fri, 27 Mar 2009 19:14:47 +0000 (20:14 +0100)
tools/queue_rss.py

index fb56e189a4d24801e4f40d8b3fd363b35f31ac17..7b33121761ad876204e8edf20ca4c7ad76cacdd5 100755 (executable)
@@ -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
         )
     )