From: Zac Medico Date: Sat, 14 Jul 2007 22:44:08 +0000 (-0000) Subject: Always show PORTDIR with index 0 in the repo display. X-Git-Tag: v2.2_pre1~1029 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=87a7501f4e87f15fcb51ef77eeee17f212ba34dc;p=portage.git Always show PORTDIR with index 0 in the repo display. svn path=/main/trunk/; revision=7257 --- 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