summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-09 02:18:42 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-09 02:18:42 +0000
commit6afefabfb5f442a6844cf60664bf0516f661106d (patch)
tree627b52f407558fbf35d88bbafac646ca7f711bd7 /pym/portage/dbapi/bintree.py
parentAdd some blank lines around the messages that suggest --without-mask and (diff)
downloadportage-multirepo-6afefabfb5f442a6844cf60664bf0516f661106d.tar.gz
portage-multirepo-6afefabfb5f442a6844cf60664bf0516f661106d.tar.bz2
portage-multirepo-6afefabfb5f442a6844cf60664bf0516f661106d.zip
Bug #253563 - Replace hardcoded green/red color strings with GOOD/BAD. Thanks
to Vsevolod Kozlov <sevakda@gmail.com> for the initial patch. svn path=/main/trunk/; revision=12401
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 9b6953b7..7f2c0cbf 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -9,7 +9,7 @@ from portage.dep import isvalidatom, isjustname, dep_getkey, match_from_list
from portage.dbapi.virtual import fakedbapi
from portage.exception import InvalidPackageName, \
PermissionDenied, PortageException
-from portage.output import green, EOutput
+from portage.output import EOutput, colorize
from portage.util import ensure_dirs, normalize_path, writemsg, writemsg_stdout
from portage.versions import best, catpkgsplit, catsplit
from portage.update import update_dbentries
@@ -737,7 +737,7 @@ class binarytree(object):
chunk_size = 3000
writemsg_stdout("\n")
writemsg_stdout(
- green("Fetching bininfo from ") + \
+ colorize("GOOD", "Fetching bininfo from ") + \
re.sub(r'//(.+):.+@(.+)/', r'//\1:*password*@\2/', base_url) + "\n")
self.remotepkgs = portage.getbinpkg.dir_get_metadata(
self.settings["PORTAGE_BINHOST"], chunk_size=chunk_size)