Description of problem: Since I instlled yum I have been unable to update my software. I keep getting a error report. I have included both files for your review. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 132882 [details] Crashdump file
Reassigning to yum component.
Pasting the traceback: Traceback (most recent call last): File "/usr/sbin/pirut", line 363, in ? main() File "/usr/sbin/pirut", line 358, in main pm = PackageManager() File "/usr/sbin/pirut", line 56, in __init__ GraphicalYumBase.__init__(self, False) File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 123, in __init__ self.doPluginSetup(types=(yum.plugins.TYPE_CORE)) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 173, in doPluginSetup optparser, types) File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 148, in __init__ self.run('config') File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 164, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/downloadonly.py", line 26, in config_hook parser.add_option('', '--downloadonly', dest='dlonly', action='store_true', AttributeError: 'NoneType' object has no attribute 'add_option' Local variables in innermost frame: conduit: <yum.plugins.ConfigPluginConduit instance at 0xb798a6cc> parser: None ...reassigning to pirut, looks like it isn't doing: self.optparser = YumOptionParser(...) ...before calling the plugin init code. On the other hand given it's pretty much guaranteed noone wants to use downloadonly with pirut, maybe we should fix the plugins so that they can say "only run me when running via. yum cli"?
To the original poster, you can have your software updates work again by doing: rpm -e yum-downloadonly ...as root.
(In reply to comment #3) > ...reassigning to pirut, looks like it isn't doing: > self.optparser = YumOptionParser(...) That's not guaranteed to be done outside of the cli > ...before calling the plugin init code. > On the other hand given it's pretty much guaranteed noone wants to use > downloadonly with pirut, maybe we should fix the plugins so that they can say > "only run me when running via. yum cli"? Yeah, sounds like the plugin should either a) check for having an optparser, or b) be of TYPE_INTERACTIVE
Hmm, git annotate on downloadonly gives: 820d0a0e (Tim Lauridisen 2006-10-05 13:33:23 +0000 22)plugin_type = (TYPE_INTERACTIVE,) ...Ahh HA, I think I understand, pirut does: self.doPluginSetup(types=(yum.plugins.TYPE_CORE)) ...instead of: self.doPluginSetup(types=(yum.plugins.TYPE_CORE,)) ...so types == TYPE_CORE == 0, so this bit of code runs: if not types: types = ALL_TYPES ...Doh!
*** This bug has been marked as a duplicate of 191630 ***