Bug 663378
Summary: | yum --changelog update traceback | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | David Kovalsky <dkovalsk> |
Component: | yum | Assignee: | James Antill <james.antill> |
Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.0 | CC: | benl, ksrot, tcapek |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | yum-3.2.29-5.el6 | Doc Type: | Bug Fix |
Doc Text: |
Running "yum --changelog update" caused yum to terminate with a traceback. With this update, an informative error message is given instead.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-19 13:34:04 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: |
Description
David Kovalsky
2010-12-15 15:38:33 UTC
File "/usr/lib/python2.6/site-packages/yum/update_md.py", line 312, in __init__ self.add(repo) File "/usr/lib/python2.6/site-packages/yum/update_md.py", line 398, in add for event, elem in iterparse(infile): File "<string>", line 64, in __iter__ SyntaxError: mismatched tag: line 129, column 2 ...this means that the updateinfo for the repo. is not XML. We already do: for event, elem in iterparse(infile): if elem.tag == 'update': try: un = UpdateNotice(elem) except UpdateNoticeException, e: print >> sys.stderr, "An update notice is broken, skipping." # what else should we do? continue self.add_notice(un) ...but we could certainly move that out to cover the iterparse too. --changelog/--security/etc. still won't _work_ (because that data is broken), but it won't traceback. Hi James, thanks for the quick reply. It'd be nice to have such a solution. Printing something like "WARNING: changelog data won't be available, format is wrong" would clearly points users the right direction. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Running "yum --changelog update" caused yum to terminate with a traceback. With this update, an informative error message is given instead. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0602.html |