Bug 506640 - Problem with yum-plugin-downloadonly
Summary: Problem with yum-plugin-downloadonly
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 11
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 509525 528187 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-18 03:31 UTC by Eugen O
Modified: 2014-01-21 23:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-10 16:00:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eugen O 2009-06-18 03:31:41 UTC
Description of problem:

Python traceback when trying to use yum-plugin-downloadonly.
 
Version-Release number of selected component (if applicable):
FC 11 i386.

How reproducible:
Install the plugin via yum and then try to download a file.

Steps to Reproduce:
1. yum install yum-plugin-downloadonly 
2. yum install mc --downloadonly --downloaddir=/root
  
Actual results:

[root@localhost log]# yum reinstall mc --downloadonly --downloaddir=/root   
Loaded plugins: dellsysidplugin2, downloadonly, refresh-packagekit
Setting up Reinstall Process
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 352, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1010, in doCommand
    return base.reinstallPkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 680, in reinstallPkgs
    oldcount = len(self.tsInfo)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 658, in <lambda>
    tsInfo = property(fget=lambda self: self._getTsInfo(), 
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 491, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 232, in populateSack
    self.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/downloadonly.py", line 41, in postreposetup_hook
    repo.setAttribute('pkgdir',opts.dldir)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 295, in setAttribute
    setattr(self, key, value)
AttributeError: can't set attribute


Expected results:

It should download the mc rpm into /root directory.

Additional info:

I using : 
yum-3.2.23-3.fc11.noarch
yum-plugin-downloadonly-1.1.22-1.fc11.noarch

Comment 1 James Antill 2009-06-18 17:15:11 UTC
It's the --downloaddir option which is broken, I've fixed this upstream.

Comment 2 Liam Li 2009-07-03 10:14:22 UTC
*** Bug 509525 has been marked as a duplicate of this bug. ***

Comment 3 James Antill 2009-10-09 15:54:33 UTC
*** Bug 528187 has been marked as a duplicate of this bug. ***


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