Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 305194 Details for
Bug 348961
update failed and client said to report it.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
0001-Catch-unknown-errors-when-parsing-the-update-metadat.patch
0001-Catch-unknown-errors-when-parsing-the-update-metadat.patch (text/plain), 1.83 KB, created by
Luke Macken
on 2008-05-13 03:27:44 UTC
(
hide
)
Description:
0001-Catch-unknown-errors-when-parsing-the-update-metadat.patch
Filename:
MIME Type:
Creator:
Luke Macken
Created:
2008-05-13 03:27:44 UTC
Size:
1.83 KB
patch
obsolete
>From 69dfca44e9179412c128c0e1a05cf6bf519da282 Mon Sep 17 00:00:00 2001 >From: Luke Macken <lmacken@redhat.com> >Date: Mon, 12 May 2008 23:23:08 -0400 >Subject: [PATCH] Catch unknown errors when parsing the update metadata, potentially due to corruption, > and throw an UpdateNoticeException (rh#348961) > > >diff --git a/yum/update_md.py b/yum/update_md.py >index b5fdeda..b79a540 100644 >--- a/yum/update_md.py >+++ b/yum/update_md.py >@@ -268,16 +268,19 @@ class UpdateMetadata(object): > else: # obj is a file object > infile = obj > >- for event, elem in iterparse(infile): >- if elem.tag == 'update': >- un = UpdateNotice(elem) >- if not self._notices.has_key(un['update_id']): >- self._notices[un['update_id']] = un >- for pkg in un['pkglist']: >- for file in pkg['packages']: >- self._cache['%s-%s-%s' % (file['name'], >- file['version'], >- file['release'])] = un >+ try: >+ for event, elem in iterparse(infile): >+ if elem.tag == 'update': >+ un = UpdateNotice(elem) >+ if not self._notices.has_key(un['update_id']): >+ self._notices[un['update_id']] = un >+ for pkg in un['pkglist']: >+ for file in pkg['packages']: >+ self._cache['%s-%s-%s' % (file['name'], >+ file['version'], >+ file['release'])] = un >+ except: # Possibly corrupted metadata >+ raise UpdateNoticeException > > def __str__(self): > ret = '' >-- >1.5.4.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 348961
:
305194
|
305195
|
307226