Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180307 - app-portage/esearch should find exact packages
Summary: app-portage/esearch should find exact packages
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2007-05-30 01:40 UTC by Daevid Vincent
Modified: 2011-08-20 02:00 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 Daevid Vincent 2007-05-30 01:40:23 UTC
Is this a known issue with a "fix" coming or is this "by design" (which seems shockingly short-sighted). I searched bugs.gentoo.org for quite a while and didn't see anything like this amongst the bajillion other portage bugs

Why can't I just search for an exact package (like to find out which versions I have installed/available, or other info).

daevid ~ # esearch python | less
[ Results for search key : python ]
[ Applications found : 54 ]

*  dev-lang/python
      Latest version available: 2.4.4-r4
      Latest version installed: 2.4.4
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.python.org/
      Description: Python is an interpreted, interactive, object-oriented programming language.
      License:     PSF-2.2

daevid ~ # esearch dev-lang/python
[ Results for search key : dev-lang/python ]
[ Applications found : 0 ] 
 

Yes, I can use eix, but I don't have this on all my boxes, nor do I want to install it and maintain yet another package cache and all that (for example, on a dev VMWare guest that I want to keep as small as possible).

daevid ~ # eix dev-lang/python
[U] dev-lang/python 
     Available versions:  
        (2.3)   2.3.5-r2 2.3.5-r3 ~2.3.6 ~2.3.6-r2
        (2.4)   2.4.3-r1 2.4.3-r4 2.4.4 2.4.4-r4
        (2.5)   [M]~2.5-r2 [M]~2.5.1-r2
     Installed:           2.3.5-r2(2.3)(17:50:44 09/10/05)(X berkdb -bootstrap -build -doc gdbm ipv6 ncurses -nocxx readline ssl -tcltk -ucs2)
                          2.4.4(2.4)(00:06:19 05/12/07)(berkdb -bootstrap -build -doc gdbm ipv6 ncurses -nocxx readline ssl -tk -ucs2)
     Homepage:            http://www.python.org/
     Description:         Python is an interpreted, interactive, object-oriented programming language.


Reproducible: Always

Actual Results:  
I get 54 packages I have to sift through, despite the fact that I proved the exact package to esearch.

Expected Results:  
It should have shown me the exact package that I told it to find.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-05-30 03:54:07 UTC
Well, it's by design, however maybe you should try with the --fullname option ;)
Comment 2 Daevid Vincent 2007-05-31 23:15:50 UTC
Fair enough. That does work, but it still seems cumbersome and I'd like to see 'esearch' just be smarter and realize that if there's a 'category/package', to just find that rather than me having to use --fullname

This would allow for combinations on the same command line too.

dae51d@daevid ~ $ esearch app-portage/eix python
[ Results for search key : app-portage/eix ]
[ Applications found : 0 ]

[ Results for search key : python ]
[ Applications found : 54 ]

dae51d@daevid ~ $ esearch --fullname app-portage/eix python
[ Results for search key : app-portage/eix ]
[ Applications found : 1 ]

*  app-portage/eix
      Latest version available: 0.9.1
      Latest version installed: 0.7.9
      Size of downloaded files: [no/bad digest]
      Homepage:    http://eix.sourceforge.net
      ...

[ Results for search key : python ]
[ Applications found : 313 ]

where are those 313 coming from? there should be 54.

Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-06-01 02:07:26 UTC
The 313 come because it now also matches teh category part, so it also finds everything in dev-python.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2008-12-30 05:46:40 UTC
Unfortunately, esearch is no longer being maintained by the upstream developer. This will need a patch submitted in order to be fixed.
Comment 5 SpanKY gentoo-dev 2011-07-22 17:35:28 UTC
sounds like there isnt any behavior here that is broken
Comment 6 Brian Dolbec (RETIRED) gentoo-dev 2011-08-20 02:00:05 UTC
I've just implemented an automatic fullname detection and enabling in esearch.

So it will work with multiple pkgnames on the same command, some being fullname, some not.

git commit: 9b6c804f2498cb27875b9be806b5fd5c39c5aa15

It is now being developed again by Paul Varner and myself.

https://github.com/fuzzyray/esearch/