From 036b7211eb147422f7911c2c11a34a4046126135 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sun, 1 Dec 2013 01:58:50 -0800 Subject: [PATCH] Optimize out a common element for an early return. --- pym/_emerge/depgraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 622d28841..343cc032a 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2276,10 +2276,11 @@ class depgraph(object): Don't ignore dependencies if pkg has a slot operator dependency on the child and the child has changed slot/sub_slot. """ + if not mypriority.satisfied: + return False slot_operator_rebuild = False if atom.slot_operator == '=' and \ (pkg.root, pkg.slot_atom) in self._dynamic_config._slot_operator_replace_installed and \ - mypriority.satisfied and \ mypriority.satisfied is not child and \ mypriority.satisfied.installed and \ not child.installed and \ @@ -2288,7 +2289,6 @@ class depgraph(object): return not atom.blocker and \ not recurse_satisfied and \ - mypriority.satisfied and \ mypriority.satisfied.visible and \ dep.child is not None and \ not dep.child.installed and \ -- 2.26.2