abrt version: 1.1.10 architecture: i686 Attached file: backtrace cmdline: /usr/bin/python /usr/bin/yum search asd component: yum executable: /usr/bin/yum kernel: 2.6.35-0.57.rc6.git1.fc14.i686.PAE package: yum-3.2.27-20.fc14 reason: config.py:99:__set__:ValueError: Error parsing "enabled = '\xc3\x9f'": invalid boolean value release: Fedora release 14 (Rawhide) time: 1280612576 uid: 500 How to reproduce ----- I had enabled = ß in a .repo file. But this should probably give an error message instead of an exception ...
Created attachment 435804 [details] File: backtrace
okay I've sent a patch upstream to fix this. diff --git a/yum/__init__.py b/yum/__init__.py index 3f87f50..bb5eb64 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -447,7 +447,11 @@ class YumBase(depsolve.Depsolve): @return: YumRepository instance. ''' repo = yumRepo.YumRepository(section) - repo.populate(parser, section, self.conf) + try: + repo.populate(parser, section, self.conf) + except ValueError, e: + msg = _('Repository %r: Error parsing config: %s' % (section,e)) + raise Errors.ConfigError, msg # Ensure that the repo name is set if not repo.name:
this is now checked in upstream and will be out in the next release of yum.
yum-3.2.28-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc12
yum-3.2.28-2.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc14
yum-3.2.28-2.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc13
yum-3.2.28-3.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc12
yum-3.2.28-3.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc13
yum-3.2.28-3.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc14
yum-3.2.28-3.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.28-3.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.28-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.