This patch allows qpkg -q to report more detailed dependency information which is especially useful when there are dulicate packages in different slots. For example, currently qpkg -q searches only for the base name of the package. So we get queries like this: $ qpkg -q -I sys-libs/db sys-libs/db-1.85-r1 DEPENDED ON BY: perl-5.8.0-r12 python-2.2.3-r5 gaim-0.72-r1 apache-2.0.48-r1 pam-0.75-r11 sys-libs/db-4.0.14-r2 DEPENDED ON BY: perl-5.8.0-r12 python-2.2.3-r5 gaim-0.72-r1 apache-2.0.48-r1 pam-0.75-r11 sys-libs/db-3.2.9-r7 DEPENDED ON BY: perl-5.8.0-r12 python-2.2.3-r5 gaim-0.72-r1 apache-2.0.48-r1 pam-0.75-r11 which is rather confusing and doesn't show the true depencencies. With this patch we get: $ ./qpkg.mine -q -I sys-libs/db sys-libs/db-1.85-r1 * DEPENDED ON BY: >=sys-libs/db python-2.2.3-r5 =sys-libs/db-1 gaim-0.72-r1 =sys-libs/db-1 libperl-5.8.0 >=sys-libs/db pam-0.75-r11 sys-libs/db-4.0.14-r2 * DEPENDED ON BY: >=sys-libs/db python-2.2.3-r5 =sys-libs/db gaim-0.72-r1 >=sys-libs/db libperl-5.8.0 >=sys-libs/db pam-0.75-r11 sys-libs/db-3.2.9-r7 * DEPENDED ON BY: >=sys-libs/db-3 python-2.2.3-r5 =sys-libs/db gaim-0.72-r1 >=sys-libs/db-3 libperl-5.8.0 >=sys-libs/db-3 pam-0.75-r11 which shows more detailed info such as gaim depends on =db-1 and python needs >=deb-3. Detailed information like this should eliminate some of the forum questions like "Why do I need 3 versions of foo?" and "Can I removed all old versions of foo safely?".
Created attachment 21321 [details, diff] Returns more detailed dependency information patch against gentoolkit-0.1.36
Created attachment 22622 [details, diff] Alternate speedup patch
Comment on attachment 22622 [details, diff] Alternate speedup patch wrong bug
just from looking at your sample output I see that it doesn't work (testing confirmed that), also qpkg will be phased out in favor of equery so I'm resistent to add new features to it.