summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-16 20:33:59 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-16 20:33:59 +0000
commitf4686ed09e525149fb05d8ca70097ef8f5c0632e (patch)
tree8aa782906134208c2e875793e414a90ad99bb3b1
parent15351478437ee7e228dcfbf2268597dd2e9574b9 (diff)
downloadportage-f4686ed09e525149fb05d8ca70097ef8f5c0632e.tar.gz
portage-f4686ed09e525149fb05d8ca70097ef8f5c0632e.tar.bz2
portage-f4686ed09e525149fb05d8ca70097ef8f5c0632e.zip
Bug #213592 - Fix --onlydeps breakage.
svn path=/main/trunk/; revision=9473
-rw-r--r--pym/_emerge/__init__.py7
1 files changed, 4 insertions, 3 deletions
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 " + \