equery list - inst-pkg does not show belongs to portage/overlay i dont know which ebuild is install - portage or overlay? can we change [I--] [ ] app-arch/hdup-1.6.35 (0) to [I-O] [ ] app-arch/hdup-1.6.35 (0) or something like that ... <snip> porkoo ~ # equery list -p -o hdup [ Searching for package 'hdup' in all categories among: ] * installed packages [I--] [ ~] app-arch/hdup-1.6.35 (0) * Portage tree (/usr/portage) [-P-] [ ~] app-arch/hdup-1.6.34 (0) [-P-] [ ~] app-arch/hdup-1.6.35 (0) [-P-] [ ~] app-arch/hdup-1.6.32 (0) [-P-] [ ~] app-arch/hdup-1.6.33 (0) * overlay tree (/usr/local/portage) [--O] [ ~] app-arch/hdup-1.6.35 (0) </snip>
There is no way to know which ebuild was used (theoretically it could be a completely different one too).
ok - this is a 'extreme' case and unlucky explained :(, because honestly i wanted the following feature - maybe we can add a cosmetic-eye-candy (color/asterisk) if the installed pkg matches one of the portage/overlay ones. <snip> porkoo ~ # equery list -p -o hdup [ Searching for package 'hdup' in all categories among: ] * installed packages [I--] [ ] app-arch/hdup-1.6.37 (0) *other-color/bold/?* * Portage tree (/usr/portage) [-P-] [ ~] app-arch/hdup-1.6.34 (0) [-P-] [ ~] app-arch/hdup-1.6.35 (0) [-P-] [ ~] app-arch/hdup-1.6.32 (0) [-P-] [ ~] app-arch/hdup-1.6.33 (0) * overlay tree (/usr/local/portage) [--O] [ ] app-arch/hdup-1.6.37 (0) *other-color/bold/?* </snip>
While we could add such a feature: trying to figure out which of the available packages in the overlay or porttree corresponds to, this is generally not a solvable problem. I'll mull it over for a bit. Hopefully this will be rather trivial once the equery python api materialises.
Marking as later since the API will not be forthcoming in the near future.