From 87a7501f4e87f15fcb51ef77eeee17f212ba34dc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 14 Jul 2007 22:44:08 +0000 Subject: Always show PORTDIR with index 0 in the repo display. svn path=/main/trunk/; revision=7257 --- pym/emerge/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-1-g7c22