Bug 1000788

Summary: [abrt] yum-3.4.3-106.fc19: yumcommands.py:3666:doCommand:TypeError: 'NoneType' object is not iterable
Product: [Fedora] Fedora Reporter: Tim Jones <tim>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, jzeleny, packaging-team-maint, tla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d36e96742ba4d1284cc68cd5c472221522c30d03
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 16:54:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Tim Jones 2013-08-25 08:58:02 UTC
Description of problem:
I was trying to downgrade or remove all packages from a repo which has had its repo file removed from the system, with:
yum repository-packages atrpms remove-or-distribution-synchronization

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

Additional info:
reporter:       libreport-2.1.6
cmdline:        /usr/bin/python /bin/yum repository-packages atrpms remove-or-distribution-synchronization
executable:     /bin/yum
kernel:         3.10.7-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
yumcommands.py:3666:doCommand:TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 126, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 532, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 3666, in doCommand
    for toinst in apkgs:
TypeError: 'NoneType' object is not iterable

Local variables in innermost frame:
remap: {'erase-or-distro-sync': 'remove-or-sync', 'erase-or-sync': 'remove-or-sync', 'upgrade-to': 'update-to', 'erase': 'remove', 'erase-or-distribution-synchronization': 'remove-or-sync', 'remove-or-distro-sync': 'remove-or-sync', 'remove-or-distribution-synchronization': 'remove-or-sync', 'erase-or-reinstall': 'remove-or-reinstall', 'upgrade': 'update'}
cmd: 'remove-or-sync'
apkgs: None
txmbrs: [<TransactionMember : libbluray1.x86_64 0:0.3.0-5.fc19 - e (0x25b8368)>]
_add_repopkg2txmbrs: <function _add_repopkg2txmbrs at 0x2731938>
self: <yumcommands.RepoPkgsCommand instance at 0x25367e8>
args: ['*']
extcmds: ['atrpms', 'remove-or-distribution-synchronization']
num: 0
txmbr: <TransactionMember : libbluray1.x86_64 0:0.3.0-5.fc19 - e (0x25b8368)>
pkgs: [<YumAvailablePackageSqlite : libbluray1-0.3.0-5.fc19.x86_64 (0x46a2350)>, <YumAvailablePackageSqlite : libbluray1-0.2.3-3.fc19.x86_64 (0x46a2310)>]
base: <cli.YumBaseCli object at 0x2528e50>
arg: '*'
noargs: True
repoid: 'atrpms'
basecmd: 'repository-packages'
pkg: <YumAvailablePackageSqlite : libbluray1-0.3.0-5.fc19.x86_64 (0x46a2350)>

Comment 1 Tim Jones 2013-08-25 08:58:07 UTC
Created attachment 790048 [details]
File: backtrace

Comment 2 Tim Jones 2013-08-25 08:58:10 UTC
Created attachment 790049 [details]
File: environ

Comment 3 Fedora End Of Life 2015-01-09 19:35:14 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-02-17 16:54:36 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.