Bug 215132

Summary: repo-rss does not show changelogs anymore
Product: [Fedora] Fedora Reporter: Aurelien Bompard <gauret>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: extras-qa, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.1.11-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-13 13:19:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fixes changelogs in repo-rss
none
Fixed version of repo-rss.py none

Description Aurelien Bompard 2006-11-11 08:53:57 UTC
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

Comment 1 Aurelien Bompard 2006-11-11 08:53:57 UTC
Created attachment 140957 [details]
Fixes changelogs in repo-rss

Comment 2 Tim Lauridsen 2007-02-14 14:56:40 UTC
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.

Comment 3 Tim Lauridsen 2007-04-13 10:25:35 UTC
Does it work in the current releases.

Comment 4 Aurelien Bompard 2007-04-18 19:09:29 UTC
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


Comment 5 Tim Lauridsen 2007-04-19 09:14:04 UTC
Look like i forgot to add some patches to the yum-utils 1.0.x branch.
please try the attached py file.

Comment 6 Tim Lauridsen 2007-04-19 09:15:24 UTC
Created attachment 152985 [details]
Fixed version of repo-rss.py

Comment 7 Aurelien Bompard 2007-04-20 05:58:38 UTC
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)

Comment 8 Seth Vidal 2008-03-13 13:19:58 UTC
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.