From: Brian Dolbec Date: Sun, 1 Dec 2013 09:58:50 +0000 (-0800) Subject: Optimize out a common element for an early return. X-Git-Tag: v2.2.8~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=036b7211eb147422f7911c2c11a34a4046126135;p=portage.git Optimize out a common element for an early return. --- 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 \