Bug 1019960

Summary: [abrt] yum-3.4.3-111.fc19: yumcommands.py:3678:doCommand:TypeError: 'NoneType' object is not iterable
Product: [Fedora] Fedora Reporter: Joe Sapp <sapp>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, james.antill, jzeleny, packaging-team-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7f3a237db6d422e3383d0cfc467f232c2057a175
Fixed In Version: yum-3.4.3-148.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-10 02:57:27 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:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Joe Sapp 2013-10-16 17:12:55 UTC
Description of problem:
I have some old packages installed from the @texlive/17 repo, so I tried to run:
$ sudo yum repo-pkgs 'texlive' remove-or-distro-sync

Version-Release number of selected component:
yum-3.4.3-111.fc19

Additional info:
reporter:       libreport-2.1.8
cmdline:        /usr/bin/python /usr/bin/yum repo-pkgs texlive remove-or-distro-sync
executable:     /usr/bin/yum
kernel:         3.11.4-201.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
#1 doCommand in /usr/share/yum-cli/yumcommands.py:3678
#2 doCommands in /usr/share/yum-cli/cli.py:569
#3 main in /usr/share/yum-cli/yummain.py:174
#4 user_main in /usr/share/yum-cli/yummain.py:355
#5 <module> in /usr/bin/yum:29

Comment 1 Joe Sapp 2013-10-16 17:12:58 UTC
Created attachment 813067 [details]
File: backtrace

Comment 2 Joe Sapp 2013-10-16 17:13:02 UTC
Created attachment 813068 [details]
File: environ

Comment 3 Zdeněk Pavlas 2013-10-17 08:29:37 UTC
Easy to fix with just:

-                    for toinst in apkgs:
+                    for toinst in apkgs or []:

..but maybe James would like to look at this too.. The apkgs setup code in remove-or-distro-sync seems broken to me.

Comment 4 James Antill 2014-04-07 21:17:06 UTC
 Upstream fix is basically the same:

-                    apkgs = None
+                    apkgs = []

Comment 5 Fedora Update System 2014-05-22 13:10:36 UTC
yum-3.4.3-148.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-3.4.3-148.fc20

Comment 6 Fedora Update System 2014-05-23 18:55:05 UTC
Package yum-3.4.3-148.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-148.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6603/yum-3.4.3-148.fc20
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-06-10 02:57:27 UTC
yum-3.4.3-148.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-07-09 15:23:03 UTC
yum-3.4.3-152.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/yum-3.4.3-152.fc19