Description of problem: repoquery --changelog unpredictably reports errors. When I run as root: 'repoquery --changelog kernel' reports UnicodeDecodeError (like in another bugzilla entry 483157) 'repoquery --changelog tcl' reports yum.Errors.RepoError: database disk image is malformed 'repoquery --changelog tcl' works when issued as regular user. Version-Release number of selected component (if applicable): yum-utils-1.1.19-1.fc10.noarch How reproducible: Steps to Reproduce: 1.'repoquery --changelog tcl' Actual results: Traceback (most recent call last): File "/usr/bin/repoquery", line 857, in <module> main(sys.argv) File "/usr/bin/repoquery", line 853, in main repoq.runQuery(regexs) File "/usr/bin/repoquery", line 501, in runQuery print pkg.doQuery(oper) File "/usr/bin/repoquery", line 173, in doQuery return getattr(self, "fmt_%s" % method)(*args, **kw) File "/usr/bin/repoquery", line 264, in fmt_changelog for date, author, message in self.pkg.returnChangelog(): File "/usr/lib/python2.5/site-packages/yum/sqlitesack.py", line 225, in returnChangelog self._loadChangelog() File "/usr/lib/python2.5/site-packages/yum/sqlitesack.py", line 209, in _loadChangelog "WHERE pkgId = ?", (self.pkgId,)) File "/usr/lib/python2.5/site-packages/yum/sqlitesack.py", line 50, in newFunc raise Errors.RepoError, str(e) yum.Errors.RepoError: database disk image is malformed Expected results: changelog from the Tcl package Additional info:
There are two problems here. The unicode errors are fixed in current yum/yum-utils in F11. We may or may not back port this to F10. The database disk image error appears to be separate and will probably be fixed by cleaning out the existing metadata and recreating it.