> yum install yum-downloadonly
После этого любой
> yum update some --downloadonly --downloaddir=/home/demas/my
приводит к ошибке:
[root@localhost demas]# yum install gdb --downloadonly --downloaddir=/home/demas/fakeroot/
Loaded plugins: downloadonly, fastestmirror, presto, refresh-packagekit
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 348, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
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