On 2022-01-07 00:24:26 +0800, Kai Liu wrote:
I'm trying to analyze how the packages in my project on my private instance depends on each other. Is there a way to dump/export the dependency graph from any OBS internal data?
Hmm if you are interested in the build dependencies within a project, you could use the /build/<prj>/<repo>/<arch>/_builddepinfo?view=revpkgnames route (note: this does not take build dependencies from other projects into account). I just attached a simple (and incomplete) osc plugin that prints out the build dependency graph in the dot format. You can store it in ~/.osc-plugins/dotgraph.py and invoke it via $> osc depgraph openSUSE:Tools openSUSE_Tumbleweed x86_64 | dot -Teps -o out.eps $> epstopdf out.eps $> mupdf out.pdf (I usually use the -Tpng backend but I probably miss a package...) If there is an edge from the vertex "v" to the vertex "w", then "w" is a build dependency of "v". Marcus