From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071105 Fedora/2.0.0.9-1.fc7 Firefox/2.0.0.9 pango-text Description of problem: Tried to update my system software via Software Updater on Fedora 7,it crashed and reported that there was bug-This was the readout given Component: pirut Summary: TB29ec97ad ini.py:563:readfp:UnboundLocalError: local variable 'line' referenced before assignment Traceback (most recent call last): File "/usr/sbin/pup", line 614, in <module> main() File "/usr/sbin/pup", line 606, in main pup = PackageUpdater(not options.autoapply, options.config) File "/usr/sbin/pup", line 85, in __init__ GraphicalYumBase.__init__(self, False, config) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__ plugin_types=(yum.plugins.TYPE_CORE,)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 164, in _getConfig self.getReposFromConfig() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 229, in getReposFromConfig parser.readfp(confpp_obj) File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp self.data.readfp(fp) File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp if line and line[-1]=='\n': UnboundLocalError: local variable 'line' referenced before assignment Local variables in innermost frame: pending_lines: [] fp: <yum.parser.ConfigPreProcessor instance at 0x87009cc> exc: None self: cur_section_name: None linecount: 0 cur_option_name: None fname: file://///etc/yum.repos.d/macromedia-i386.repo cur_option: None cur_section: None I hope this helps Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Applications/System/Software Updater 2.Program crashes 3.N/A Actual Results: This is the reported bug Component: pirut Summary: TB29ec97ad ini.py:563:readfp:UnboundLocalError: local variable 'line' referenced before assignment Traceback (most recent call last): File "/usr/sbin/pup", line 614, in <module> main() File "/usr/sbin/pup", line 606, in main pup = PackageUpdater(not options.autoapply, options.config) File "/usr/sbin/pup", line 85, in __init__ GraphicalYumBase.__init__(self, False, config) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__ plugin_types=(yum.plugins.TYPE_CORE,)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 164, in _getConfig self.getReposFromConfig() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 229, in getReposFromConfig parser.readfp(confpp_obj) File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp self.data.readfp(fp) File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp if line and line[-1]=='\n': UnboundLocalError: local variable 'line' referenced before assignment Local variables in innermost frame: pending_lines: [] fp: <yum.parser.ConfigPreProcessor instance at 0x87009cc> exc: None self: cur_section_name: None linecount: 0 cur_option_name: None fname: file://///etc/yum.repos.d/macromedia-i386.repo cur_option: None cur_section: None Expected Results: I should have been able to download any new software changes to my system from Software Updater Additional info: Component: pirut Summary: TB29ec97ad ini.py:563:readfp:UnboundLocalError: local variable 'line' referenced before assignment Traceback (most recent call last): File "/usr/sbin/pup", line 614, in <module> main() File "/usr/sbin/pup", line 606, in main pup = PackageUpdater(not options.autoapply, options.config) File "/usr/sbin/pup", line 85, in __init__ GraphicalYumBase.__init__(self, False, config) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__ plugin_types=(yum.plugins.TYPE_CORE,)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 164, in _getConfig self.getReposFromConfig() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 229, in getReposFromConfig parser.readfp(confpp_obj) File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp self.data.readfp(fp) File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp if line and line[-1]=='\n': UnboundLocalError: local variable 'line' referenced before assignment Local variables in innermost frame: pending_lines: [] fp: <yum.parser.ConfigPreProcessor instance at 0x87009cc> exc: None self: cur_section_name: None linecount: 0 cur_option_name: None fname: file://///etc/yum.repos.d/macromedia-i386.repo cur_option: None cur_section: None
I'm currently using Fedora version 7
This is a yum or pirut bug, nothing to do with redhat-rpm-config - reassigning to yum as I've a feeling this is dupe of something, just can't find the bug now...
This is a problem with python-iniparse, please update to the latest version in Fedora updates. yum update python-iniparse