On Fri, 2011-01-21 at 16:21 -0500, James Antill wrote: > > > > 2. There are three places where this happens: > > > > > > + if dot is None: > > > + self._tree_print_req(pkg, req, level) > > > + lim = level > > > + else: > > > + dot.addPackage(pkg, rpkgs) > > > + lim = level + 1 > > > > > > ...why is "lim" a different number depending on if it's ascii or > dot? > > > > Because the function addPackage links one package to all it > > dependencies, so it does the iteration over the packages itself. > > I could rewrite it so that it links one package to one of his > dependency > > (in a similar way than we do for the ascii-tree) but then we loose > the > > coloring. > > The problem I worry about is that doesn't that make: > > repoquery --level=2 --requires --output=ascii-tree > repoquery --level=2 --requires --output=dot-tree > > ...behave differently?
No they print the same level of dependency. Pierre _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
