From: | "Michał Górny" <mgorny@g.o> | ||
---|---|---|---|
To: | gentoo-portage-dev@l.g.o | ||
Subject: | Re: [gentoo-portage-dev] Installed pkg list in dependency order ? | ||
Date: | Wed, 16 Jun 2021 09:43:51 | ||
Message-Id: | 1340ea5ba8e071b6e707bd358701940befa5daf8.camel@gentoo.org | ||
In Reply to: | [gentoo-portage-dev] Installed pkg list in dependency order ? by Joakim Tjernlund |
1 | On Mon, 2021-06-14 at 15:16 +0000, Joakim Tjernlund wrote: |
2 | > Hi |
3 | > |
4 | > I need to generate a pkg list from an uptodate gentoo system too feed this list into qmerge |
5 | > so qmerge can install these pkgs in correct order. |
6 | > |
7 | > Tried emerge -e but that list is not in dep order, seems to be just a list with pkgs to rebuild. |
8 | > |
9 | |
10 | You could try reusing the code I've written for nattka: |
11 | |
12 | https://github.com/mgorny/nattka/blob/master/nattka/depgraph.py |
13 | https://github.com/mgorny/nattka/blob/master/nattka/__main__.py#L300 |
14 | |
15 | Note that it's a just a cheap effort, and it e.g. will order randomly |
16 | when it hits circular deps. |
17 | |
18 | -- |
19 | Best regards, |
20 | Michał Górny |