see http://validator.w3.org/feed/docs/warning/EmailFormat.html
Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Signed-off-by: Joerg Jaspert <joerg@debian.org>
import time
from optparse import OptionParser
from datetime import datetime
import time
from optparse import OptionParser
from datetime import datetime
+from email.utils import parseaddr
link = "https://ftp-master.debian.org/new/%s_%s.html" % \
(msg['Source'], msg['Version'])
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,
feed.items.insert(0,
PyRSS2Gen.RSSItem(
title,
pubDate = pubdate,
description = description,
- author = cgi.escape(msg['Maintainer']),
+ author = cgi.escape(author),
link = link,
guid = link
)
link = link,
guid = link
)