]> git.decadent.org.uk Git - dak.git/blobdiff - tools/queue_rss.py
queued config
[dak.git] / tools / queue_rss.py
index fb56e189a4d24801e4f40d8b3fd363b35f31ac17..9fc5f429115dd24f1d95886de8b92e82c57d2a8c 100755 (executable)
@@ -18,8 +18,8 @@ import PyRSS2Gen
 
 from debian_bundle.deb822 import Changes
 
-inrss_filename = "changes_in.rss"
-outrss_filename = "changes_out.rss"
+inrss_filename = "NEW_in.rss"
+outrss_filename = "NEW_out.rss"
 db_filename = "status.db"
 
 parser = OptionParser()
@@ -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
         )
     )