Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335055 - portage-2.2_rc71 crashes when attempting to find fictitious package and the pretend flag is set
Summary: portage-2.2_rc71 crashes when attempting to find fictitious package and the p...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2010-08-28 18:21 UTC by nvinson234
Modified: 2010-08-29 16:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nvinson234 2010-08-28 18:21:54 UTC
When using emerge to find a fictitious package, portage attempts to iterate over a NoneType causing it to crash.  This happens when the pretend flag is set.

Reproducible: Always

Steps to Reproduce:
1. run emerge -p fictitious_package
2. Observe crash
3.

Actual Results:  
 % emerge -p fictitious_package

These are the packages that would be merged, in order:

Calculating dependencies... done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1649, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 285, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 5885, in backtrack_depgraph
    myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 5904, in _backtrack_depgraph
    success, favorites = mydepgraph.select_files(myfiles)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 1586, in select_files
    virts_p = root_config.settings.get_virts_p().get(atom_pn)
  File "/usr/lib64/portage/pym/portage/package/ebuild/config.py", line 1930, in get_virts_p
    return self._virtuals_manager.get_virts_p()
  File "/usr/lib64/portage/pym/portage/package/ebuild/_config/VirtualsManager.py", line 230, in get_virts_p
    if vkeysplit[1] not in self._virts_p:
TypeError: argument of type 'NoneType' is not iterable

Expected Results:  
emerge should display an error message saying fictitious_package does not exist

Works with 2.2_rc69
Comment 2 Zac Medico gentoo-dev 2010-08-29 16:58:33 UTC
This is fixed in 2.2_rc72.