Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 170797

Summary: app-portage/portage-utils - add a -s/--skip-comments option to qgrep
Product: Portage Development Reporter: TGL <tom.gl>
Component: Third-Party ToolsAssignee: Portage Utils Team <portage-utils>
Status: RESOLVED FIXED    
Severity: enhancement CC: samuel.lethiec
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: qgrep--add_skip-comments_option.patch
qgrep--add_eclass_option.patch

Description TGL 2007-03-13 22:38:21 UTC
Here is a small patch which adds a --skip-comments option to qgrep.

It is meant to avoid the "|sed '/\.ebuild:[ \t]*#/d'" i've used a few times (just thought i may not be the only one).

The patch applies on top of the one from bug #170795 ("--eclass").
Comment 1 TGL 2007-03-13 22:38:44 UTC
Created attachment 113221 [details, diff]
qgrep--add_skip-comments_option.patch
Comment 2 TGL 2007-03-17 08:37:03 UTC
Created attachment 113549 [details, diff]
qgrep--add_eclass_option.patch
Comment 3 TGL 2007-03-17 19:53:51 UTC
Comment on attachment 113221 [details, diff]
qgrep--add_skip-comments_option.patch

Bleh... The second patch i've attached here is the one that was missing in bug #170795 :-/
Comment 4 TGL 2007-03-17 19:54:10 UTC
Comment on attachment 113549 [details, diff]
qgrep--add_eclass_option.patch

wrong bug
Comment 5 solar (RETIRED) gentoo-dev 2007-03-17 20:53:43 UTC
/var/cvsroot/gentoo-projects/portage-utils/qgrep.c,v  <--  qgrep.c
new revision: 1.17; previous revision: 1.16
Comment 6 solar (RETIRED) gentoo-dev 2007-04-05 18:42:18 UTC
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 7 solar (RETIRED) gentoo-dev 2007-04-05 18:43:03 UTC
Closing