From: Zac Medico Date: Sat, 6 Jul 2013 21:52:09 +0000 (-0700) Subject: _ignore_satisfied_buildtime: tweak optional X-Git-Tag: v2.2.0_alpha187~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a4d3e4b3aaec27c49b8e7c8d66102b34f438fd5c;p=portage.git _ignore_satisfied_buildtime: tweak optional --- diff --git a/pym/_emerge/DepPrioritySatisfiedRange.py b/pym/_emerge/DepPrioritySatisfiedRange.py index e5fdba9f1..391f5409b 100644 --- a/pym/_emerge/DepPrioritySatisfiedRange.py +++ b/pym/_emerge/DepPrioritySatisfiedRange.py @@ -51,10 +51,11 @@ class DepPrioritySatisfiedRange(object): def _ignore_satisfied_buildtime(cls, priority): if priority.__class__ is not DepPriority: return False + if priority.optional: + return True if priority.buildtime_slot_op: return False - return bool(priority.optional or \ - priority.satisfied) + return bool(priority.satisfied) @classmethod def _ignore_satisfied_buildtime_slot_op(cls, priority):