Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176716 Details for
Bug 244450
[PATCH] app-portage/esearch-0.7.1-r4 does not work with Python 2.6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use new api by default and fall back to the deprecated api if necessary
deprecated.patch (text/plain), 1.59 KB, created by
Zac Medico
on 2008-12-29 07:04:04 UTC
(
hide
)
Description:
use new api by default and fall back to the deprecated api if necessary
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-12-29 07:04:04 UTC
Size:
1.59 KB
patch
obsolete
>diff -Nur esearch.orig/esearch.py esearch/esearch.py >--- esearch.orig/esearch.py 2008-12-28 22:48:35.000000000 -0800 >+++ esearch/esearch.py 2008-12-28 22:55:45.000000000 -0800 >@@ -13,7 +13,10 @@ > sys.path.insert(0, "/usr/lib/portage/pym") > sys.path.insert(0, "/usr/lib/esearch") > >-from output import bold, red, green, darkgreen, turquoise, nocolor >+try: >+ from portage.output import bold, red, green, darkgreen, turquoise, nocolor >+except ImportError: >+ from output import bold, red, green, darkgreen, turquoise, nocolor > from os.path import exists > import re > >diff -Nur esearch.orig/esync.py esearch/esync.py >--- esearch.orig/esync.py 2008-12-28 22:48:35.000000000 -0800 >+++ esearch/esync.py 2008-12-28 22:58:02.000000000 -0800 >@@ -18,7 +18,10 @@ > sys.path.insert(0, "/usr/lib/portage/pym") > > import portage >-from output import red, green, bold, darkgreen, nocolor, xtermTitle >+try: >+ from portage.output import red, green, bold, darkgreen, nocolor, xtermTitle >+except ImportError: >+ from output import red, green, bold, darkgreen, nocolor, xtermTitle > > from common import needdbversion > >diff -Nur esearch.orig/eupdatedb.py esearch/eupdatedb.py >--- esearch.orig/eupdatedb.py 2008-12-28 22:48:35.000000000 -0800 >+++ esearch/eupdatedb.py 2008-12-28 22:57:05.000000000 -0800 >@@ -20,7 +20,10 @@ > sys.path.insert(0, "/usr/lib/esearch") > > import portage >-from output import red, darkgreen, green, bold, nocolor >+try: >+ from portage.output import red, darkgreen, green, bold, nocolor >+except ImportError: >+ from output import red, darkgreen, green, bold, nocolor > > from common import needdbversion, version >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244450
: 176716