From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rw3Ui-0001po-F1 for garchives@archives.gentoo.org; Sat, 11 Feb 2012 03:19:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAA80E06D7; Sat, 11 Feb 2012 03:19:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B31E9E06D7 for ; Sat, 11 Feb 2012 03:19:16 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24E331B4024 for ; Sat, 11 Feb 2012 03:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D91B3E53FF for ; Sat, 11 Feb 2012 03:19:14 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <2d08e6c4520556e5acc0055cdb3d68028eed3243.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 2d08e6c4520556e5acc0055cdb3d68028eed3243 Date: Sat, 11 Feb 2012 03:19:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6513ba02-9e9f-41f1-a392-bf5943ab989e X-Archives-Hash: e33c157c2041dfbc700ea7a1947b8158 commit: 2d08e6c4520556e5acc0055cdb3d68028eed3243 Author: Zac Medico gentoo org> AuthorDate: Sat Feb 11 03:18:57 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Feb 11 03:18:57 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D2d08e6c4 display_autounmask: highlight config changes As suggested here: http://archives.gentoo.org/gentoo-dev/msg_06a47ad55977f4d16bfe18769c6c38b= 8.xml --- pym/_emerge/depgraph.py | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 6d0ba1c..cdc5098 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -6054,6 +6054,14 @@ class depgraph(object): =20 write_to_file =3D not problems =20 + def format_msg(lines): + lines =3D lines[:] + for i, line in enumerate(lines): + if line.startswith("#"): + continue + lines[i] =3D colorize("INFORM", line.rstrip()) + "\n" + return "".join(lines) + for root in roots: settings =3D self._frozen_config.roots[root].settings abs_user_config =3D os.path.join( @@ -6065,22 +6073,22 @@ class depgraph(object): if root in unstable_keyword_msg: writemsg_stdout("\nThe following " + colorize("BAD", "keyword change= s") + \ " are necessary to proceed:\n", noiselevel=3D-1) - writemsg_stdout("".join(unstable_keyword_msg[root]), noiselevel=3D-1= ) + writemsg_stdout(format_msg(unstable_keyword_msg[root]), noiselevel=3D= -1) =20 if root in p_mask_change_msg: writemsg_stdout("\nThe following " + colorize("BAD", "mask changes")= + \ " are necessary to proceed:\n", noiselevel=3D-1) - writemsg_stdout("".join(p_mask_change_msg[root]), noiselevel=3D-1) + writemsg_stdout(format_msg(p_mask_change_msg[root]), noiselevel=3D-1= ) =20 if root in use_changes_msg: writemsg_stdout("\nThe following " + colorize("BAD", "USE changes") = + \ " are necessary to proceed:\n", noiselevel=3D-1) - writemsg_stdout("".join(use_changes_msg[root]), noiselevel=3D-1) + writemsg_stdout(format_msg(use_changes_msg[root]), noiselevel=3D-1) =20 if root in license_msg: writemsg_stdout("\nThe following " + colorize("BAD", "license change= s") + \ " are necessary to proceed:\n", noiselevel=3D-1) - writemsg_stdout("".join(license_msg[root]), noiselevel=3D-1) + writemsg_stdout(format_msg(license_msg[root]), noiselevel=3D-1) =20 protect_obj =3D {} if write_to_file: