Red Hat Bugzilla – Bug 237367
yum-downloadonly plugin's --downloaddir option generates stack backtrace
Last modified: 2007-11-30 17:12:02 EST
Description of problem:
Using the --downloaddir option in yum-downloadonly plugin generates a stack
backtrace due to an AttributeError.
Version-Release number of selected component (if applicable):
yum-downloadonly-1.0.3-1.fc6.noarch.rpm from Fedora Extras; and yum-3.0.3
Steps to Reproduce:
1. Enable plugins in YUM and provide the --downloadonly option to YUM to
activate the yum-downloadonly plugin.
2. Use the --downloaddir option to YUM to change the default download directory.
3. Run YUM.
eg., # yum --downloadonly --downloaddir=/tmp/foo install R-devel
You get a stack backtrace due to a AttributeError caused by the following
statement on line number 38 in /usr/lib/yum-plugins/downloadonly.py:
One would expect YUM to obediently download all the packages in the specified
The exception is raised since 'repo' is an instance of 'YumRepository' and it
has no member function named 'set'. What it has instead is 'setAttribute'.
Please find attached a patch
(http://glug-nith.org/~rishi/download/src/downloadonly.diff) I used to fix this
issue on my system.
Created attachment 153236 [details]
This trivial change fixes this issue for me.
Thanks, i have fixed it upstream