Bug 915845 - [abrt] yum-utils-1.1.31-4.fc17: __init__.py:452:getReposFromConfigFile:ConfigError: File contains no section headers.
Summary: [abrt] yum-utils-1.1.31-4.fc17: __init__.py:452:getReposFromConfigFile:Config...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6c0529d466fadb0cab91dab91a8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-26 15:52 UTC by long
Modified: 2013-03-06 16:49 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-06 16:49:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.67 KB, text/plain)
2013-02-26 15:52 UTC, long
no flags Details
File: core_backtrace (534 bytes, text/plain)
2013-02-26 15:52 UTC, long
no flags Details
File: environ (1.90 KB, text/plain)
2013-02-26 15:52 UTC, long
no flags Details
File: smolt_data (3.24 KB, text/plain)
2013-02-26 15:52 UTC, long
no flags Details

Description long 2013-02-26 15:52:17 UTC
Version-Release number of selected component:
yum-utils-1.1.31-4.fc17

Additional info:
cmdline:        /usr/bin/python -tt /bin/yum-config-manager --enable
dso_list:       yum-3.4.3-30.fc17.noarch
executable:     /bin/yum-config-manager
kernel:         3.7.9-101.fc17.x86_64
uid:            0

Truncated backtrace:
__init__.py:452:getReposFromConfigFile:ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/dropbox.repo, line: 1
'[Dropbox] name=Dropbox Repository baseurl=http://linux.dropbox.com/fedora/17/ gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc\n'

Traceback (most recent call last):
  File "/bin/yum-config-manager", line 166, in <module>
    repos = yb.repos.listEnabled()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1009, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 677, in _getRepos
    self.getReposFromConfig()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 557, in getReposFromConfig
    self.getReposFromConfigFile(repofn, repo_age=thisrepo_age)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 452, in getReposFromConfigFile
    raise Errors.ConfigError(exception2msg(e))
ConfigError: File contains no section headers.
file: file://///etc/yum.repos.d/dropbox.repo, line: 1
'[Dropbox] name=Dropbox Repository baseurl=http://linux.dropbox.com/fedora/17/ gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc\n'

Local variables in innermost frame:
e: File contains no section headers.
file: file://///etc/yum.repos.d/dropbox.repo, line: 1
'[Dropbox] name=Dropbox Repository baseurl=http://linux.dropbox.com/fedora/17/ gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc\n'
repofn: '///etc/yum.repos.d/dropbox.repo'
confpp_obj: <yum.parser.ConfigPreProcessor instance at 0x177f518>
parser: <iniparse.compat.RawConfigParser object at 0x1779750>
repo_age: 1361893521
validate: None
self: <utils.YumUtilBase object at 0x15ca390>

Comment 1 long 2013-02-26 15:52:21 UTC
Created attachment 702987 [details]
File: backtrace

Comment 2 long 2013-02-26 15:52:24 UTC
Created attachment 702988 [details]
File: core_backtrace

Comment 3 long 2013-02-26 15:52:27 UTC
Created attachment 702989 [details]
File: environ

Comment 4 long 2013-02-26 15:52:31 UTC
Created attachment 702990 [details]
File: smolt_data

Comment 5 Zdeněk Pavlas 2013-03-06 16:49:58 UTC
File /etc/yum.repos.d/dropbox.repo has invalid contents.  There should be a newline after the '[Dropbox]' section header.

yum-config-manager is a straightforward utility script without a toplevel function, adding exception handling would be too intrusive.


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