From: Zac Medico Date: Tue, 25 May 2010 08:20:37 +0000 (-0700) Subject: Fix traceback in _show_unsatisfied_dep, reported on forums: X-Git-Tag: v2.2_rc68~581 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0271a98e8ca2ebc6d3f6fd9922f8ec732b723f5;p=portage.git Fix traceback in _show_unsatisfied_dep, reported on forums: http://forums.gentoo.org/viewtopic-t-829445.html?sid=58b3b5cec88b8e2ffebc9991c90a473e File "/usr/lib/portage/pym/_emerge/depgraph.py", line 2273, in _show_unsatisfied_dep if not (violated_atom.use.enabled or violated_atom.use.disabled): AttributeError: 'NoneType' object has no attribute 'enabled' --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index c8b460396..3a35e84e9 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2270,7 +2270,8 @@ class depgraph(object): # If so, suggest to change them on the parent. mreasons = [] violated_atom = atom.unevaluated_atom.violated_conditionals(myparent.use.enabled, pkg.use.enabled) - if not (violated_atom.use.enabled or violated_atom.use.disabled): + if violated_atom.use and not \ + (violated_atom.use.enabled or violated_atom.use.disabled): #all violated use deps are conditional changes = [] conditional = violated_atom.use.conditional