From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5D8A6138AD0 for ; Mon, 18 Feb 2013 04:50:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2921E0586; Mon, 18 Feb 2013 04:50:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 859FAE0586 for ; Mon, 18 Feb 2013 04:50:49 +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 A060E33DBF4 for ; Mon, 18 Feb 2013 04:50:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 0C3BBE4073 for ; Mon, 18 Feb 2013 04:50:47 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1361162983.630047890226fa6e0e1994b931e5ce680f1cdfcc.vapier@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: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 630047890226fa6e0e1994b931e5ce680f1cdfcc X-VCS-Branch: master Date: Mon, 18 Feb 2013 04:50:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fceb2c89-7230-4fd1-af3f-648e6fe9ec7f X-Archives-Hash: d851ca4ba5a63cc4304050064889b578 commit: 630047890226fa6e0e1994b931e5ce680f1cdfcc Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 18 02:19:04 2013 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 18 04:49:43 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=63004789 depgraph: tweak "required by" message format The current output format for listing a chain of dependencies produces one long flat line that can be hard to read. For example, if you mask dev-lang/ruby and then try to install dev-ruby/json, you'll see: The following mask changes are necessary to proceed: (see "package.unmask" in the portage(5) man page for more details) #required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby19] # /etc/portage/package.mask/misc: =dev-lang/ruby-1.9.3_p385 #required by dev-ruby/rubygems-1.8.24[ruby_targets_ruby18], required by virtual/rubygems-1, required by dev-ruby/racc-1.4.9[-test,ruby_targets_ruby18], required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby18], required by dev-lang/ruby-1.9.3_p385[rdoc], required by dev-ruby/rake-0.9.2.2[ruby_targets_ruby19], required by dev-ruby/json-1.7.7[-test,-doc,ruby_targets_ruby19] # /etc/portage/package.mask/misc: =dev-lang/ruby-1.8.7_p371 Tracing your way through that list is not easy. Instead, let's use newlines and now we get: The following mask changes are necessary to proceed: (see "package.unmask" in the portage(5) man page for more details) # required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby19] # /etc/portage/package.mask/misc: =dev-lang/ruby-1.9.3_p385 # required by dev-ruby/rubygems-1.8.24[ruby_targets_ruby18] # required by virtual/rubygems-1 # required by dev-ruby/racc-1.4.9[-test,ruby_targets_ruby18] # required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby18] # required by dev-lang/ruby-1.9.3_p385[rdoc] # required by dev-ruby/rake-0.9.2.2[ruby_targets_ruby19] # required by dev-ruby/json-1.7.7[-test,-doc,ruby_targets_ruby19] # /etc/portage/package.mask/misc: =dev-lang/ruby-1.8.7_p371 Signed-off-by: Mike Frysinger gentoo.org> --- pym/_emerge/depgraph.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index bab1c32..6f7b673 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -3617,7 +3617,7 @@ class depgraph(object): else: display_list.append("required by %s" % node) - msg = "#" + ", ".join(display_list) + "\n" + msg = "# " + "\n# ".join(display_list) + "\n" return msg