[Yum-devel] [yum-utils] package-graph

Panu Matilainen pmatilai at laiskiainen.org
Sat Dec 18 17:09:29 UTC 2010


On Sat, 18 Dec 2010, Pierre-Yves wrote:

> On Fri, 2010-12-17 at 18:59 +0100, Pierre-Yves wrote:
>> The file can be found there:
>> http://pingou.fedorapeople.org/package-graph.py
>
> Actually this version fails if tested from /usr/bin as it can not import
> the class from repoquery.
> Should I look to port the code from repoquery to a dedicated python
> module ?
> (As far as I can see, it would be moving the class from repoquery.py to
> another file and get the right import at the top of repoquery.py)

How about just adding a dot output mode to repoquery? Something like 
--tree-format=[tree|dot] and defaulting tree (feel free to pick a better 
name though :)

The dot formatting in package-graph.py is just a few lines of code, I 
don't see any reason why it couldn't be in repoquery directly.

 	- Panu -


More information about the Yum-devel mailing list