From a4d3e4b3aaec27c49b8e7c8d66102b34f438fd5c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 6 Jul 2013 14:52:09 -0700 Subject: [PATCH] _ignore_satisfied_buildtime: tweak optional --- pym/_emerge/DepPrioritySatisfiedRange.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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): -- 2.26.2