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

Bug 253177

Summary: app-portage/esearch-0.7.1: DEPRECATION NOTICE: The output module was replaced by portage.output
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: [OLD] Core systemAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 253172    
Bug Blocks:    

Description Andreas K. Hüttel archtester gentoo-dev 2008-12-30 19:18:36 UTC
After portage update to sys-apps/portage-2.1.6.4,  esync, eupdatedb, and
esearch produce many deprecation warnings as quoted in summary. Fixed by the
following one-line patches: 

------------------------------------------------------------------------
--- esearch.py.orig     2008-12-30 20:10:13.000000000 +0100
+++ esearch.py  2008-12-30 20:10:25.000000000 +0100
@@ -13,7 +13,7 @@
 sys.path.insert(0, "/usr/lib/portage/pym")
 sys.path.insert(0, "/usr/lib/esearch")

-from output import bold, red, green, darkgreen, turquoise, nocolor
+from portage.output import bold, red, green, darkgreen, turquoise, nocolor
 from os.path import exists
 import re

------------------------------------------------------------------------
--- esync.py.orig       2008-12-30 20:05:50.000000000 +0100
+++ esync.py    2008-12-30 20:06:13.000000000 +0100
@@ -18,7 +18,7 @@
 sys.path.insert(0, "/usr/lib/portage/pym")

 import portage
-from output import red, green, bold, darkgreen, nocolor, xtermTitle
+from portage.output import red, green, bold, darkgreen, nocolor, xtermTitle

 from common import needdbversion

------------------------------------------------------------------------
--- eupdatedb.py.orig   2008-12-30 20:10:31.000000000 +0100
+++ eupdatedb.py        2008-12-30 20:10:44.000000000 +0100
@@ -20,7 +20,7 @@
 sys.path.insert(0, "/usr/lib/esearch")

 import portage
-from output import red, darkgreen, green, bold, nocolor
+from portage.output import red, darkgreen, green, bold, nocolor

 from common import needdbversion, version

------------------------------------------------------------------------
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-30 19:30:18 UTC
I suspect this is fixed in a new version already.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2008-12-30 20:45:46 UTC
Already fixed in esearch-0.7.1-r5

*** This bug has been marked as a duplicate of bug 231223 ***