summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/emerge/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index d4358604b..689bfb13b 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -2683,6 +2683,13 @@ class depgraph(object):
return s
repo_str.unknown_repo = False
+ # pre-allocate index for PORTDIR so that it always has index 0.
+ for root_config in self.roots.itervalues():
+ portdb = root_config.trees["porttree"].dbapi
+ portdir = portdb.porttree_root
+ if portdir:
+ repo_str(portdb, portdir)
+
tree_nodes = []
display_list = []
mygraph = self._parent_child_digraph