Description of problem: repo-rss does not show changelogs anymore. There is just nothing between the two <pre></pre> tags where the changelog should be. The reason is that it looks like pkg.changelog cannot be called twice. The first time it shows the changelog, the second time it gives an empty list. The attached patch fixes it. Version-Release number of selected component (if applicable): yum-utils-1.0.1-1.fc6 How reproducible: Always
Created attachment 140957 [details] Fixes changelogs in repo-rss
where = pkg.changelog alone should work. should do it pkg.changelog is property returning the result form calling pkg.returnChangelog(). If this is not working, the issue shall be fixed inside yum, not as a workaround in repo-rss.
Does it work in the current releases.
Well, actually at the moment it doesn't work at all : $ repo-rss -f /tmp/test.xml updates Traceback (most recent call last): File "/usr/bin/repo-rss", line 22, in ? from repomd.mdErrors import RepoMDError ImportError: No module named repomd.mdErrors $ rpm -q yum-utils yum-utils-1.0.3-1.fc6
Look like i forgot to add some patches to the yum-utils 1.0.x branch. please try the attached py file.
Created attachment 152985 [details] Fixed version of repo-rss.py
It starts now, but afterwards I get a traceback : $ python tmp/repo-rss.py -f fedora/extras.xml -t "extras - recent packages" -r 7 extras Loading "installonlyn" plugin Loading "fedorakmod" plugin Loading "skip-broken" plugin Reading in repository metadata - please wait.... Traceback (most recent call last): File "tmp/repo-rss.py", line 269, in ? main(options, args) File "tmp/repo-rss.py", line 241, in main makeFeed(options.filename, options.title, options.link, options.description, recent, my) File "tmp/repo-rss.py", line 177, in makeFeed rssobj.doPkg(pkg, url) File "tmp/repo-rss.py", line 107, in doPkg item = self.rsspkg(pkg, url) File "tmp/repo-rss.py", line 149, in rsspkg description += escape('<pre>%s</pre>' % escape(changelog.encode('utf-8'))) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)
Okay, We've been sitting on this for a looooooooooooooong time. I can't make the UnicodeDecodeError and repo-rss has been in use for the fedora planet infofeed for a long time w/o it. While it is possible it is still happening I think this has been fixed in various releases. If you can recreate this one please reopen this bug.