import time
from optparse import OptionParser
from datetime import datetime
+from email.utils import parseaddr
import PyRSS2Gen
def __init__(self):
self.feed_in = PyRSS2Gen.RSS2(
title = "Packages entering NEW",
- link = "http://ftp-master.debian.org/new.html",
+ link = "https://ftp-master.debian.org/new.html",
description = "Debian packages entering the NEW queue" )
self.feed_out = PyRSS2Gen.RSS2(
title = "Packages leaving NEW",
- link = "http://ftp-master.debian.org/new.html",
+ link = "https://ftp-master.debian.org/new.html",
description = "Debian packages leaving the NEW queue" )
self.queue = {}
(cgi.escape(msg['Description']),
cgi.escape(msg['Changes']))
- link = "http://ftp-master.debian.org/new/%s_%s.html" % \
+ link = "https://ftp-master.debian.org/new/%s_%s.html" % \
(msg['Source'], msg['Version'])
+ maintainer = parseaddr(msg['Maintainer'])
+ author = "%s (%s)" % (maintainer[1], maintainer[0])
+
feed.items.insert(0,
PyRSS2Gen.RSSItem(
title,
pubDate = pubdate,
description = description,
- author = cgi.escape(msg['Maintainer']),
+ author = cgi.escape(author),
link = link,
guid = link
)