Bug 170795 - app-portage/portage-utils - add a -E/--eclass option to qgrep
Bug#: 170795 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: portage-utils@gentoo.org Reported By: tom.gl@free.fr
Component: Applications
URL: 
Summary: app-portage/portage-utils - add a -E/--eclass option to qgrep
Keywords:  InCVS
Status Whiteboard: 
Opened: 2007-03-13 22:27 0000
Description:   Opened: 2007-03-13 22:27 0000
Here is a patch which adds an --eclass option, which makes qgrep search in
eclasses instead of ebuilds.

------- Comment #1 From TGL 2007-03-13 22:28:35 0000 -------
Created an attachment (id=113220) [details]
qgrep--add_eclass_option.patch

------- Comment #2 From solar 2007-03-16 22:18:01 0000 -------
The new -E option does not print the path relative to $PORTDIR for the matching
eclass.

------- Comment #3 From TGL 2007-03-17 08:36:39 0000 -------
(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.

------- Comment #4 From solar 2007-03-17 16:14:11 0000 -------
(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?

------- Comment #5 From TGL 2007-03-17 16:32:04 0000 -------
Created an attachment (id=113578) [details]
qgrep--add_eclass_option.patch

Ooops...

------- Comment #6 From solar 2007-03-17 20:32:12 0000 -------
/var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v  <--  qgrep.c
new revision: 1.16; previous revision: 1.15

------- Comment #7 From solar 2007-04-05 18:42:18 0000 -------
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.

------- Comment #8 From solar 2007-04-05 18:43:02 0000 -------
Closing