Here is a patch which adds an --eclass option, which makes qgrep search in eclasses instead of ebuilds.
Created attachment 113220 [details, diff] qgrep--add_eclass_option.patch
The new -E option does not print the path relative to $PORTDIR for the matching eclass.
(In reply to comment #2) > The new -E option does not print the path relative to $PORTDIR for the matching > eclass. > Ok, a new patch follows which changes that (now prints "eclass/foo.eclass"). It is also a bit shorter, since it reuses the "ebuild" local var for eclass file paths, instead of adding a new one. And finally it adds a closedir() that was missing.
(In reply to comment #3) .. > Ok, a new patch follows which changes that (now prints "eclass/foo.eclass"). Did you forget to attach the patch?
Created attachment 113578 [details, diff] qgrep--add_eclass_option.patch Ooops...
/var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v <-- qgrep.c new revision: 1.16; previous revision: 1.15
This is released in 0.1.25 Bug #168334 ; q -r dies with a segfault after emerge --sync Bug #168442 ; does not properly parse the profile location Bug #170795 ; add a -E/--eclass option to qgrep Bug #170797 ; add a -s/--skip-comments option to qgrep Bug #171024 ; opening '/usr/portage/.metadata.x' failed Bug #171374 ; Misc enhancements for qgrep Bug #172240 ; -A/-B options for qgrep (context lines) Bug #172338 ; qgrepping through installed ebuilds (in the VDB) Bug #173005 ; Colorized output for qgrep.
Closing