Opened 7 years ago
Closed 6 years ago
#282 closed defect (fixed)
Error from Auto-update-debuginfo
Reported by: | Tellie | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | yum | Version: | |
Severity: | low | Keywords: | |
Cc: |
Description
I have installed yum-utils and activate the Auto-update-debuginfo
But when running yum gives errors like:
Executing: @python C:\USR\SBIN\yum-complete-transaction -y
Loaded plugins: auto-update-debuginfo, fastestmirror
Traceback (most recent call last):
File "C:\USR\SBIN\yum-complete-transaction", line 258, in <module>
util = YumCompleteTransaction()
File "C:\USR\SBIN\yum-complete-transaction", line 118, in init
self.main()
File "C:\USR\SBIN\yum-complete-transaction", line 156, in main
self.doUtilYumSetup()
File "/@unixroot/usr/share/yum-cli/utils.py", line 313, in doUtilYumSetup
self._getTs()
File "C:/USR/lib/python2.7/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "C:/USR/lib/python2.7/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "C:/USR/lib/python2.7/site-packages/yum/__init__.py", line 895, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "C:/USR/lib/python2.7/site-packages/yum/__init__.py", line 676, in _getSacks
self.repos.populateSack(which=repos)
File "C:/USR/lib/python2.7/site-packages/yum/repos.py", line 265, in populateSack
self.doSetup()
File "C:/USR/lib/python2.7/site-packages/yum/repos.py", line 72, in doSetup
self.ayum.plugins.run('prereposetup')
File "C:/USR/lib/python2.7/site-packages/yum/plugins.py", line 184, in run
func(conduitcls(self, self.base, conf, kwargs))
File "/@unixroot/usr/lib/yum-plugins/auto-update-debuginfo.py", line 121, in prereposetup_hook
enable_debuginfo_repos(yb, conduit)
File "/@unixroot/usr/lib/yum-plugins/auto-update-debuginfo.py", line 41, in enable_debuginfo_repos
if opts is not None and hasattr(opts.repos) :
TypeError: hasattr expected 2 arguments, got 1
Return code: 0
Silvan says the fix is @
https://github.com/rpm-software-management/yum-utils/commit/efb3c7b3fb96523bb5997c163bf4e33ab897f1b8
I tried it and it works now..
fixed in http://trac.netlabs.org/ports/changeset/2350