Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/
Date: Sun, 25 Mar 2012 21:48:48
Message-Id: 1332712105.42ae47a871f674027147d3885a466c0a0effd998.zmedico@gentoo
1 commit: 42ae47a871f674027147d3885a466c0a0effd998
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 21:48:25 2012 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 21:48:25 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=42ae47a8
7
8 emerge --sync: use yellow for portage update msg
9
10 ---
11 pym/_emerge/actions.py | 9 +++++----
12 1 files changed, 5 insertions(+), 4 deletions(-)
13
14 diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
15 index cd3fd9f..e9d6bd6 100644
16 --- a/pym/_emerge/actions.py
17 +++ b/pym/_emerge/actions.py
18 @@ -1,4 +1,4 @@
19 -# Copyright 1999-2011 Gentoo Foundation
20 +# Copyright 1999-2012 Gentoo Foundation
21 # Distributed under the terms of the GNU General Public License v2
22
23 from __future__ import print_function
24 @@ -40,6 +40,7 @@ from portage.output import blue, bold, colorize, create_color_func, darkgreen, \
25 red, yellow
26 good = create_color_func("GOOD")
27 bad = create_color_func("BAD")
28 +warn = create_color_func("WARN")
29 from portage.package.ebuild._ipc.QueryCommand import QueryCommand
30 from portage.package.ebuild.doebuild import _check_temp_dir
31 from portage._sets import load_default_config, SETPREFIX
32 @@ -2510,10 +2511,10 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
33
34 if(mybestpv != mypvs) and not "--quiet" in myopts:
35 print()
36 - print(red(" * ")+bold("An update to portage is available.")+" It is _highly_ recommended")
37 - print(red(" * ")+"that you update portage now, before any other packages are updated.")
38 + print(warn(" * ")+bold("An update to portage is available.")+" It is _highly_ recommended")
39 + print(warn(" * ")+"that you update portage now, before any other packages are updated.")
40 print()
41 - print(red(" * ")+"To update portage, run 'emerge portage' now.")
42 + print(warn(" * ")+"To update portage, run 'emerge portage' now.")
43 print()
44
45 display_news_notification(root_config, myopts)