_ignore_satisfied_buildtime: tweak optional
authorZac Medico <zmedico@gentoo.org>
Sat, 6 Jul 2013 21:52:09 +0000 (14:52 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 Jul 2013 21:52:09 +0000 (14:52 -0700)
pym/_emerge/DepPrioritySatisfiedRange.py

index e5fdba9f1e3977b492b80ad166d4c82f17595375..391f5409bd7feceb6ab717c4ddb4adc192110f37 100644 (file)
@@ -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):