Bug 678301 - yum repository parsing doesn't deal with mangled repo file gracefully
Summary: yum repository parsing doesn't deal with mangled repo file gracefully
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-17 14:03 UTC by Rahul Sundaram
Modified: 2014-01-21 23:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-17 17:34:43 UTC
Type: ---


Attachments (Terms of Use)

Description Rahul Sundaram 2011-02-17 14:03:30 UTC
Description of problem:

Refer the following for details

http://lists.fedoraproject.org/pipermail/users/2011-February/392656.html

Comment 1 seth vidal 2011-02-17 17:02:34 UTC
this is an iniparse issue at the lowest level.
here's the details:

import iniparse
c = iniparse.ConfigParser()
c.read('/etc/yum.repos.d/broken-config.repo')

MissingSectionHeaderError: File contains no section headers.
file: /etc/yum.repos.d/broken-config.repo, line: 1
' [empty1]\n'



right now yum is treating a broken repo file as a fatal error, maybe it should not - looking at the history on this code.

Comment 2 seth vidal 2011-02-17 17:34:43 UTC
You know what - I take that back - we have a place to step around this specific error in yum.

I've sent a patch upstream to yum to handle this specific issue.


Note You need to log in before you can comment on or make changes to this bug.