Bug 678301

Summary: yum repository parsing doesn't deal with mangled repo file gracefully
Product: [Fedora] Fedora Reporter: Rahul Sundaram <metherid>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ffesti, james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-17 17:34:43 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 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.