Bug 490277 - traceback on attempted install (UnboundLocalError: local variable 'tspkg' referenced before assignment)
Summary: traceback on attempted install (UnboundLocalError: local variable 'tspkg' ref...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-14 17:08 UTC by Yanko Kaneti
Modified: 2014-01-21 23:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-03-16 13:45:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Yanko Kaneti 2009-03-14 17:08:46 UTC
I have rpm-4.7.0-0.beta1.4.fc11.x86_64
Trying to yum install rpm-devel from a repo that only has rpm 4.7.0-0.beta1.3.fc11

# yum install rpm-devel
Loaded plugins: allowdowngrade
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rpm-devel.x86_64 0:4.7.0-0.beta1.3.fc11 set to be updated
--> Processing Dependency: rpm = 4.7.0-0.beta1.3.fc11 for package: rpm-devel
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 306, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 217, in main
    (result, resultmsgs) = base.buildTransaction() 
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 698, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 699, in resolveDeps
    CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 792, in _resolveRequires
    (checkdep, missing, errormsgs) = self._processReq(po, dep)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 280, in _processReq
    CheckDeps, missingdep = self._requiringFromTransaction(po, requirement, errormsgs)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 506, in _requiringFromTransaction
    if dbpkg.verGT(pkg) and not canCoinstall(pkg.arch, tspkg.arch):
UnboundLocalError: local variable 'tspkg' referenced before assignment

Comment 1 Yanko Kaneti 2009-03-14 17:20:57 UTC
yum version yum-3.2.21-15.fc11.noarch

Comment 2 Tim Lauridsen 2009-03-16 13:45:53 UTC
just a typo tspkg should be dbpkg

fixed upstream


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