Summary: | app-portage/gentoolkit - list packages install from overlay or repository | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Ryan <insanity5902> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | fuzzyray, michael |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 346443 | ||
Attachments: | equery_inoverlay.patch |
Description
Ryan
2008-01-04 19:58:15 UTC
Created attachment 140118 [details, diff]
equery_inoverlay.patch
I am sure there might be problems with the code, along with other features to add, but this is just a base for getting things going, and for me to play with python a bit.
Here is the output
OUTPUT
#equery o xeffects
x11-themes/emerald-themes-0.5.2
x11-wm/compiz-0.6.2-r1
x11-wm/compiz-fusion-0.6.0
x11-wm/emerald-0.5.2
x11-base/xgl-0.0.1_pre20070105
x11-apps/ccsm-0.6.0
x11-apps/fusion-icon-9999
x11-plugins/compiz-fusion-plugins-extra-0.6.0
x11-plugins/compiz-fusion-plugins-main-0.6.0
dev-python/compizconfig-python-0.6.0.1
x11-libs/compiz-bcop-0.6.0
x11-libs/libcompizconfig-0.6.0
-====-
Couldn't identifiy 519 packages out of 994
END OUTPUT
As you can see, over half the packages installed don't have the repository file, not sure if these are b/c they were installed with an older portage or some other issue.
Another problem, I have an overlay for KVM and qemu-softmmu , but they don't include a repository file, and they were install just 2 days ago?
*** Bug 138622 has been marked as a duplicate of this bug. *** Corrected subject typo for improved searchability. This can now be done via eix and several --*overlay* switches, example: $ eix -I --installed-from-overlay kde-testing gentoolkit-0.3.0.4 now includes a new "has" module which can look at the "repository" value saved in the vardb. It can be used for other aux_get() key lookups as well. # equery has repository gentoo will list all installed pkgs where the ebuilds were from the main tree. Substitute 'gentoo' with the overlay you desire to look for. The caveat is it can only do one lookup at a time and is not capable of a negative lookup. i.e looking for any non-gentoo values. As for complete reports, gentoolkit's new enalyze module would be suited for this. It could list all installed packages and the repository they were installed from. It should also report those that do not have a recorded repository value. It is also intended for equery has to acquire more capability in it's searches, so multiple or negative searches may be possible in future releases. There is another caveat in that old versions of pkgcore and now the newest version did/does not record the repository data. So, there may be exceptions causing the list to be incomplete. This feature is now in >=gentoolkit-0.3.0.4 equery has repository foo Also the latest versions of pkgcore now saves the repository file with the repo name of the where the ebuild came from that was just installed. There could still be holes of information possible for older installed pkgs that did not record this information. |