From: Zac Medico Date: Sun, 16 Mar 2008 20:33:59 +0000 (-0000) Subject: Bug #213592 - Fix --onlydeps breakage. X-Git-Tag: v2.2_pre5~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4686ed09e525149fb05d8ca70097ef8f5c0632e;p=portage.git Bug #213592 - Fix --onlydeps breakage. svn path=/main/trunk/; revision=9473 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 7a619271d..7ece5d953 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1244,7 +1244,7 @@ class SetArg(DependencyArg): class Dependency(object): __slots__ = ("__weakref__", "atom", "blocker", "depth", - "parent", "priority", "root") + "parent", "onlydeps", "priority", "root") def __init__(self, **kwargs): for myattr in self.__slots__: if myattr == "__weakref__": @@ -1667,7 +1667,8 @@ class depgraph(object): ("blocks", dep.parent.root, dep.atom), set()).add( dep.parent) continue - dep_pkg, existing_node = self._select_package(dep.root, dep.atom) + dep_pkg, existing_node = self._select_package(dep.root, dep.atom, + onlydeps=dep.onlydeps) if not dep_pkg: if allow_unsatisfied: self._unsatisfied_deps.append(dep) @@ -2297,7 +2298,7 @@ class depgraph(object): return 0, myfavorites self._dep_stack.append( - Dependency(atom=atom, root=myroot, parent=arg)) + Dependency(atom=atom, onlydeps=onlydeps, root=myroot, parent=arg)) if not self._create_graph(): if isinstance(arg, SetArg): sys.stderr.write(("\n\n!!! Problem resolving " + \