Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538438 - app-portage/portage-utils - equery list equivalent
Summary: app-portage/portage-utils - equery list equivalent
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-01 14:48 UTC by Bertrand Jacquin
Modified: 2015-02-23 12:50 UTC (History)
1 user (show)

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 Bertrand Jacquin 2015-02-01 14:48:13 UTC
It would be really nice to have the equivalent of equery list in portage-utils to do something like that:

$ equery --quiet list '>=sys-devel/gcc-4.8.2:4.8'                                                                     
sys-devel/gcc-4.8.3

equery is really slow and using the libq logic would lead to real benefits in a such case.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2015-02-19 08:16:29 UTC
how does `qlist -Iv` not satisfy this ?

$ qlist -eIv dev-lang/python
dev-lang/python-2.7.9-r2
dev-lang/python-3.2.5-r6
dev-lang/python-3.3.5-r1
dev-lang/python-3.4.2

$ qlist -eIv '>dev-lang/python-3.0'
dev-lang/python-3.2.5-r6
dev-lang/python-3.3.5-r1
dev-lang/python-3.4.2

$ qlist -eIv '>dev-lang/python-3.4'
dev-lang/python-3.4.2
Comment 2 Bertrand Jacquin 2015-02-19 14:09:24 UTC
(In reply to SpanKY from comment #1)
> how does `qlist -Iv` not satisfy this ?
> 
> $ qlist -eIv dev-lang/python
> dev-lang/python-2.7.9-r2
> dev-lang/python-3.2.5-r6
> dev-lang/python-3.3.5-r1
> dev-lang/python-3.4.2
> 
> $ qlist -eIv '>dev-lang/python-3.0'
> dev-lang/python-3.2.5-r6
> dev-lang/python-3.3.5-r1
> dev-lang/python-3.4.2
> 
> $ qlist -eIv '>dev-lang/python-3.4'
> dev-lang/python-3.4.2

I'm glad to see that it works like a charm for slot as well:

$ qlist -eIv 'dev-lang/python:3.3'
dev-lang/python-3.3.5-r1

Closing the bug as there is no enhancement to do. Sorry for the noise. Thanks !
Comment 3 Bertrand Jacquin 2015-02-19 14:31:07 UTC
(In reply to Bertrand Jacquin from comment #2)
> (In reply to SpanKY from comment #1)
> > how does `qlist -Iv` not satisfy this ?
> > 
> > $ qlist -eIv dev-lang/python
> > dev-lang/python-2.7.9-r2
> > dev-lang/python-3.2.5-r6
> > dev-lang/python-3.3.5-r1
> > dev-lang/python-3.4.2
> > 
> > $ qlist -eIv '>dev-lang/python-3.0'
> > dev-lang/python-3.2.5-r6
> > dev-lang/python-3.3.5-r1
> > dev-lang/python-3.4.2
> > 
> > $ qlist -eIv '>dev-lang/python-3.4'
> > dev-lang/python-3.4.2
> 
> I'm glad to see that it works like a charm for slot as well:
> 
> $ qlist -eIv 'dev-lang/python:3.3'
> dev-lang/python-3.3.5-r1
> 
> Closing the bug as there is no enhancement to do. Sorry for the noise.
> Thanks !

But I may, that would be nice to get return code different than zero when current system does not match the criteria. What do you think ?
Comment 4 SpanKY gentoo-dev 2015-02-20 22:19:28 UTC
(In reply to Bertrand Jacquin from comment #3)

can't think of a reason to not do it:
http://git.overlays.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commitdiff;h=4240e7476f0beacc8791a0439deee477a1654044
Comment 5 Bertrand Jacquin 2015-02-23 12:50:30 UTC
(In reply to SpanKY from comment #4)
> (In reply to Bertrand Jacquin from comment #3)
> 
> can't think of a reason to not do it:
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commitdiff;
> h=4240e7476f0beacc8791a0439deee477a1654044

Thanks a lot !