[Bug 825158] New: Createrepo crashes if --changelog-limit commandline option is used
https://bugzilla.novell.com/show_bug.cgi?id=825158
https://bugzilla.novell.com/show_bug.cgi?id=825158#c0
Summary: Createrepo crashes if --changelog-limit commandline
option is used
Classification: openSUSE
Product: openSUSE 12.2
Version: Final
Platform: All
OS/Version: openSUSE 12.2
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: eduard.bartosh@intel.com
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Usage of --changelog-limit option causes this crash of createrepo:
Worker 0: Traceback (most recent call last):
Worker 0: File "/usr/share/createrepo/worker.py", line 101, in <module>
Worker 0: main(sys.argv[1:])
Worker 0: File "/usr/share/createrepo/worker.py", line 89, in main
Worker 0: globalopts.get('clog_limit', None)))
Worker 0: File "/usr/lib64/python2.7/site-packages/yum/packages.py", line
1392, in xml_dump_other_metadata
Worker 0: msg += "%s\n</package>\n" %
misc.to_unicode(self._dump_changelog(clog_limit))
Worker 0: File "/usr/lib64/python2.7/site-packages/yum/packages.py", line
1339, in _dump_changelog
Worker 0: clogs = self.changelog[:clog_limit]
Worker 0: TypeError: slice indices must be integers or None or have an
__index__ method
This bug was introduced in createrepo 0.9.9 release, so most probably
createrepo also crashes on OpenSUSE 12.3. I didn't check it though.
Bug was fixed in upstream long time ago, but has never been released. Here is
the fix from their master:
commit 4f5e572f7241cbf7e32c771a4e113130634cde27
Author: Seth Vidal
https://bugzilla.novell.com/show_bug.cgi?id=825158
https://bugzilla.novell.com/show_bug.cgi?id=825158#c1
--- Comment #1 from Ed Bartosh
https://bugzilla.novell.com/show_bug.cgi?id=825158
https://bugzilla.novell.com/show_bug.cgi?id=825158#c2
--- Comment #2 from Ed Bartosh
https://bugzilla.novell.com/show_bug.cgi?id=825158
https://bugzilla.novell.com/show_bug.cgi?id=825158#c
Ye Yuan
participants (1)
-
bugzilla_noreply@novell.com