Bug 563946

Summary: UnboundLocalError: local variable 'toActOn' referenced before assignment
Product: [Fedora] Fedora Reporter: Mike Rich <bigmeanmikerich>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-12 15:57:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike Rich 2010-02-11 16:07:19 UTC
Description of problem:
Attempting to build dependencies for a standard f12 source rpm (in my case php) results in an UnboundLocalError.
------------------
[root@localhost SRPMS]# yum clean all
Loaded plugins: refresh-packagekit
Cleaning up Everything

[root@localhost SRPMS]# yum-builddep --disablerepo=* --enablerepo=fedora* --enablerepo=updates* php-5.3.1-1.fc12.src.rpm 
Loaded plugins: refresh-packagekit
fedora/metalink                                 |  19 kB     00:00     
fedora                                          | 4.2 kB     00:00     
fedora/primary_db                               | 9.7 MB     00:05     
updates/metalink                                |  13 kB     00:00     
updates                                         | 4.4 kB     00:00     
updates/primary_db                              | 3.2 MB     00:01     
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 196, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 64, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 93, in main
    self.get_build_deps(opts)
  File "/usr/bin/yum-builddep", line 173, in get_build_deps
    for srpm in toActOn:
UnboundLocalError: local variable 'toActOn' referenced before assignment

[root@localhost SRPMS]# rpm -qa rpm* yum* | sort
rpm-4.7.2-1.fc12.i686
rpm-build-4.7.2-1.fc12.i686
rpm-devel-4.7.2-1.fc12.i686
rpmdevtools-7.5-1.fc12.noarch
rpm-libs-4.7.2-1.fc12.i686
rpm-python-4.7.2-1.fc12.i686
yum-3.2.25-1.fc12.noarch
yum-metadata-parser-1.1.2-14.fc12.i686
yum-utils-1.1.25-1.fc12.noarch


Version-Release number of selected component (if applicable):
1.1.25-1.fc12.noarch

How reproducible:
Attempt to build php from its standard source rpm

Steps to Reproduce:
1.yumdownloader --source php
2.yum clean all
3.yum-builddep php-5.3.1-1.fc12.src.rpm
  
Actual results:
UnboundLocalError: local variable 'toActOn' referenced before assignment

Expected results:
Dependencies built for srpm to enable a rebuild of said srpm

Comment 1 Tim Lauridsen 2010-02-12 15:57:53 UTC

*** This bug has been marked as a duplicate of bug 563457 ***