On Mon, 2021-06-14 at 15:16 +0000, Joakim Tjernlund wrote:
> Hi 
> 
> I need to generate a pkg list from an uptodate gentoo system too feed this 
> list into qmerge
> so qmerge can install these pkgs in correct order.
> 
> Tried emerge -e but that list is not in dep order, seems to be just a list 
> with pkgs to rebuild.
> 

You could try reusing the code I've written for nattka:

https://github.com/mgorny/nattka/blob/master/nattka/depgraph.py
https://github.com/mgorny/nattka/blob/master/nattka/__main__.py#L300

Note that it's a just a cheap effort, and it e.g. will order randomly
when it hits circular deps.

-- 
Best regards,
Michał Górny



Reply via email to