From: Zac Medico Date: Fri, 4 Apr 2008 00:30:32 +0000 (-0000) Subject: Add missing DepPriority instances to the graph so that the --buildpkgonly X-Git-Tag: v2.2_pre6~261 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b4cb2121cfff04d13d0f143d2ca6804e8f630c56;p=portage.git Add missing DepPriority instances to the graph so that the --buildpkgonly hasallzeros() calculation works correctly again. svn path=/main/trunk/; revision=9696 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 117bc448b..33a4aed25 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1784,7 +1784,8 @@ class depgraph(object): # The existing node can be reused. if args: for arg in args: - self.digraph.add(existing_node, arg) + self.digraph.add(existing_node, arg, + priority=priority) # If a direct circular dependency is not an unsatisfied # buildtime dependency then drop it here since otherwise # it can skew the merge order calculation in an unwanted @@ -1853,10 +1854,10 @@ class depgraph(object): # parent/child relationship is always known in case # self._show_slot_collision_notice() needs to be called later. if pkg.onlydeps: - self.digraph.add(pkg, myparent) + self.digraph.add(pkg, myparent, priority=priority) if args: for arg in args: - self.digraph.add(pkg, arg) + self.digraph.add(pkg, arg, priority=priority) """ This section determines whether we go deeper into dependencies or not. We want to go deeper on a few occasions: