Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685052 - app-portage/portage-utils-9999: qkeyword feature suggestion: --matchmaint
Summary: app-portage/portage-utils-9999: qkeyword feature suggestion: --matchmaint
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-04 16:48 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2019-05-05 08:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-05-04 16:48:00 UTC
Given a large number of people I imagine to want to use qkeyword will be looking at it from the perspective of "Packages I'm maintaining", it might be helpful to have a match rule against entries in metadata.xml

I suspect an idiomatic approach would be for:

--matchmaint foo@bar

To exactly match all packages which have //pkgmetadata/maintainer/email = foo@bar

I suspect there's a less common usecase for (partially?) matching //pkgmetadata/maintainer/name, and potentially a scope for partial matches against email, but I'd suspect an exact match against email will be the most globally useful.
Comment 1 Larry the Git Cow gentoo-dev 2019-05-05 08:58:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=f4eb959a8a9f7b52d52c7842f53dccff8bea2699

commit f4eb959a8a9f7b52d52c7842f53dccff8bea2699
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-05-05 08:57:41 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-05-05 08:57:41 +0000

    qkeyword: add --matchmaint/-m flag, bug #685052
    
    Add option to match against maintainer email address listed in
    package metadata.xml.
    
    Closes: https://bugs.gentoo.org/685052
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 TODO.md                   |  7 +++++++
 man/include/qkeyword.desc | 11 +++++++++++
 man/qkeyword.1            | 14 ++++++++++++++
 qkeyword.c                | 21 ++++++++++++++++++++-
 4 files changed, 52 insertions(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0bbdb3f1328dcd0dd91c1ea502da3ba3e1fd364d

commit 0bbdb3f1328dcd0dd91c1ea502da3ba3e1fd364d
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-05-05 08:46:47 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-05-05 08:46:47 +0000

    libq/cache: add support for reading metadata.xml
    
    currently only one field is extracted: email
    
    Bug: https://bugs.gentoo.org/685052
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 libq/cache.c | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 libq/cache.h |  9 ++++++
 2 files changed, 106 insertions(+), 2 deletions(-)