Am Montag, 17. August 2009 17:23:16 schrieb Luke Imhoff:
We hit a similar issue on our internal OBS instance, so I made some mods to the server so that a developer could grab a dependency graph and determine all packages that depend on their OBS package (it actually goes down to the Subversion code project itself, but that's not required.) So the developer can be in kernel-source and do svndownstream deps ls and get a listing all OBS packages that depend on kernel-source.
What happens is svndownstream gets a list of all the buildinfos (which a mod to the server merges into one xml file at /build/_builddependencytree) and then uses the bdep entries and some python code in svndownstream (which is built on top of osc) to generate a dependency graph.
The problem with it is my implementation. I couldn't follow all the code in bs_sched, so we had to switch to generating the full depgraph only daily (since it takes 8-9 minutes). I'm sure someone that actually wrote sub buildinfo() or bs_sched could improve on that time since in theory bs_sched has a depgraph already and there's potential for caching if you know you're going to ask for everyone's buildinfo. It's just bs_sched is a big loop and I couldn't figure out how to extract it any of the information it had in it.
We have actually the "whatdependson" call as (the last?) missing feature for our 1.7 release. We have already the :depend data on the server, so it should be not too hard to get this implemented. However, I would be very interessted in your code creating the graphes. It would be nice if we could integrate this into our web interface (maybe even interactive via clicking on an item and jump to that package ;) bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org