diff --git a/files/usr/libexec/rocky/rss.py b/files/usr/libexec/rocky/rss.py index 9157c01..20acc74 100644 --- a/files/usr/libexec/rocky/rss.py +++ b/files/usr/libexec/rocky/rss.py @@ -110,7 +110,6 @@ class RepoRSS: etbobj.end('generator') # end generator - rfc822_format = "%a, %d %b %Y %X GMT" changelog_format = "%a, %d %b %Y GMT" for package in packages: package_hex = binascii.hexlify(package.chksum[1]).decode() @@ -130,10 +129,10 @@ class RepoRSS: if count > 3: changelog += '...' break - date = meta['timestamp'].strftime(changelog_format) + cl_date = meta['timestamp'].strftime(changelog_format) author = meta['author'] desc = meta['text'] - changelog += f'{date} - {author}\n{desc}\n\n' + changelog += f'{cl_date} - {author}\n{desc}\n\n' description = f'
{package.name} - {package.summary}
\n\n' description += '%s
\n\nChange Log:
\n\n' % description.replace("\n", "{changelog}' @@ -147,7 +146,7 @@ class RepoRSS: # end title # start pubDate etbobj.start('pubDate', {}) - etbobj.data(date) + etbobj.data(time.strftime(rfc822_format, date)) etbobj.end('pubDate') # end pubDate # start guid