Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 230264 - yum localinstall tracebacks
Summary: yum localinstall tracebacks
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-02-27 21:13 UTC by Bill Nottingham
Modified: 2014-03-17 03:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-27 21:38:44 UTC


Attachments (Terms of Use)

Description Bill Nottingham 2007-02-27 21:13:40 UTC
yum-3.1.2-1.fc7

[root@apone x86_64]# yum localinstall xorg-x11-drivers-7.2-4.fc7.x86_64.rpm 
Loading "installonlyn" plugin
Setting up Local Package Process
Examining xorg-x11-drivers-7.2-4.fc7.x86_64.rpm: xorg-x11-drivers - 7.2-4.fc7.x86_64
Marking xorg-x11-drivers-7.2-4.fc7.x86_64.rpm as an update to xorg-x11-drivers -
7.2-2.fc7.x86_64
Resolving Dependencies
--> Running transaction check
Checking deps for xorg-x11-drivers.x86_64 0-7.2-2.fc7 - None
Checking deps for xorg-x11-drivers.x86_64 0-7.2-4.fc7 - u
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 135, in main
    (result, resultmsgs) = base.buildTransaction() 
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 451, in
buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1104, in
_resolveDeps
    deps = self._mytsCheck()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1082, in _mytsCheck
    ret.extend(self._checkUpdate(txmbr))
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1265, in
_checkUpdate
    ret = self._checkInstall(txmbr)
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1234, in
_checkInstall
    dep = self._provideToPkg(req)
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 1029, in
_provideToPkg
    for po in self.whatProvides(r, f, v):
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 85, in whatProvides
    pkgs = self.pkgSack.searchProvides(name)
AttributeError: 'NoneType' object has no attribute 'searchProvides'

Contrast to:

[root@apone x86_64]# yum install xorg-x11-drivers-7.2-4.fc7.x86_64.rpm 
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Examining xorg-x11-drivers-7.2-4.fc7.x86_64.rpm: xorg-x11-drivers - 7.2-4.fc7.x86_64
Marking xorg-x11-drivers-7.2-4.fc7.x86_64.rpm as an update to xorg-x11-drivers -
7.2-2.fc7.x86_64
Resolving Dependencies
--> Running transaction check
Checking deps for xorg-x11-drivers.x86_64 0-7.2-2.fc7 - None
Checking deps for xorg-x11-drivers.x86_64 0-7.2-4.fc7 - u
--> Processing Dependency: xorg-x11-drv-i810 for package: xorg-x11-drivers
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
Checking deps for xorg-x11-drv-i810.x86_64 0-1.6.5-11.fc7 - u

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Updating:
 xorg-x11-drivers        x86_64     7.2-4.fc7       
xorg-x11-drivers-7.2-4.fc7.x86_64.rpm   0.0 
Installing for dependencies:
 xorg-x11-drv-i810       x86_64     1.6.5-11.fc7     development       330 k

Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       1 Package(s)         
Remove       0 Package(s)         

Total download size: 330 k

Comment 1 Jeremy Katz 2007-02-27 21:38:44 UTC
This should be fixed in CVS where the pkgSack, etc have changed to be a property
making it so they don't have to be explicitly set up everywhere.


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