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

Bug 234692

Summary: Esearch Bug Fix
Product: Gentoo Linux Reporter: Frank Bartunek <frank.bartunek>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: trivial CC: dan.dickey
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch that solves the problem.
esearch-0.7.1-no-deprecated-modules.patch

Description Frank Bartunek 2008-08-14 00:20:31 UTC
Esearch lately has not kept up with changes to portage's internal python code, leading to error messages.   This patch corrects that, removing the error message and using the proper output format for portage.



Reproducible: Always

Steps to Reproduce:
1. emerge esearch
2. esearch <package>
3. (note error message)

Actual Results:  
# esearch esearch
/usr/lib/portage/pym/output.py:39: DeprecationWarning: DEPRECATION NOTICE: The output module was replaced by portage.output
[ Results for search key : esearch ]
[ Applications found : 2 ]

*  app-portage/esearch
      Latest version available: 0.7.1-r4
      Latest version installed: 0.7.1-r4
      Size of downloaded files: [no/bad digest]
      Homepage:    http://david-peter.de/esearch.html
      Description: Replacement for 'emerge --search' with search-index
      License:     GPL-2


Expected Results:  
# esearch esearch
[ Results for search key : esearch ]
[ Applications found : 2 ]

*  app-portage/esearch
      Latest version available: 0.7.1-r4
      Latest version installed: 0.7.1-r4
      Size of downloaded files: [no/bad digest]
      Homepage:    http://david-peter.de/esearch.html
      Description: Replacement for 'emerge --search' with search-index
      License:     GPL-2


Already fixed.
Comment 1 Frank Bartunek 2008-08-14 00:21:45 UTC
Created attachment 162854 [details, diff]
Patch that solves the problem.

That was easy.
Comment 2 Frank Bartunek 2008-08-14 00:22:41 UTC
If anyone can directly contact the upstream author, I would appreciate it.  (I tried his email first.   The box is full.)
Comment 3 Dan A. Dickey 2008-11-07 15:17:31 UTC
Frank,
It doesn't look like this actually got into an ebuild.
It was still happening to me and I ended up just editting the esearch.py
file on my system, which made the problem go away.
I'm not sure why this bug was closed.
Comment 4 Giacomo Perale 2008-11-09 09:31:22 UTC
Created attachment 171156 [details, diff]
esearch-0.7.1-no-deprecated-modules.patch


The patch misses a couple of other 'import'. The attached patch fixes esync and eupdatedb as well.