| Summary: | yum repository parsing doesn't deal with mangled repo file gracefully | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rahul Sundaram <metherid> |
| Component: | yum | Assignee: | Seth Vidal <skvidal> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ffesti, james.antill, maxamillion, pmatilai, tla |
| 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: | |
|
Description
Rahul Sundaram
2011-02-17 14:03:30 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.
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. |