thelema / odb

Oasis-db downloader and installer
Do What The F*ck You Want To Public License
33 stars 7 forks source link

being able to output dependencies #50

Open UnixJunkie opened 12 years ago

UnixJunkie commented 12 years ago

Hello,

I about I add the possibility to output the dependency graph of all installed packages in a way that can be used by external tools such as dot from graphviz so that people can visualize the dependency graph?

Regards, F.

thelema commented 12 years ago

On 05/25/2012 01:26 AM, Francois Berenger wrote:

Hello,

I about I add the possibility to output the dependency graph of all installed packages in a way that can be used by external tools such as dot from graphviz so that people can visualize the dependency graph?

Regards, F.


Reply to this email directly or view it on GitHub: https://github.com/thelema/odb/issues/50

That sounds like an interesting and potentially useful project. It can fit into the odb project if you like, but I'm hesitant to include it inside the odb.ml file. As a separate program, no problem. Also, only doing this for installed packages doesn't need odb, only findlib, but it may be a good destination. Try starting by drawing the dep graph of all packages in a repo.

E.

UnixJunkie commented 12 years ago

OK, the first step will be to have a real graph in the Dep module of odb.ml. I may do this after my "user re-definable actions" proposal. Then, we may become able to update /re-install packages more efficiently or to uninstall some properly.

UnixJunkie commented 12 years ago

Should I try to display the dependency graph from odb or just output the graph to a user-given filename and output the command to convert it to a png file? Then the user will use whatever png viewer he likes to see it.

I think the latter is better as it does not imply any dependency to the graphviz toolsuite neither any image viewer.

UnixJunkie commented 12 years ago

Hello, I sent a pull request concerning this feature request.