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 1Pm4Rh-0007MC-VR for garchives@archives.gentoo.org; Sun, 06 Feb 2011 13:14:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2222E0B69; Sun, 6 Feb 2011 13:09:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 900C7E0B69 for ; Sun, 6 Feb 2011 13:09:46 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 193741B41A7 for ; Sun, 6 Feb 2011 13:09:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 83A3B80072 for ; Sun, 6 Feb 2011 13:09:45 +0000 (UTC) From: "Thomas Sachau" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Sachau" Message-ID: <44809c14de087f87ee0fa9c5a21ec94e4787c3ce.tommy@gentoo> Subject: [gentoo-commits] proj/portage:multilib commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: tommy X-VCS-Committer-Name: Thomas Sachau X-VCS-Revision: 44809c14de087f87ee0fa9c5a21ec94e4787c3ce Date: Sun, 6 Feb 2011 13:09:45 +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: X-Archives-Hash: c9d91a85fbc2c9fc8e8da7b75f66d89a commit: 44809c14de087f87ee0fa9c5a21ec94e4787c3ce Author: Sebastian Luther gmx de> AuthorDate: Fri Jan 28 20:34:31 2011 +0000 Commit: Thomas Sachau gentoo org> CommitDate: Fri Jan 28 21:21:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D44809c14 --info: Show installed sets (bug 282250) --- pym/_emerge/actions.py | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 33a1f01..c88ef92 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1295,9 +1295,13 @@ class _info_pkgs_ver(object): return self.ver + self.repo_suffix + self.provide_suffix =20 def action_info(settings, trees, myopts, myfiles): + + root_config =3D trees[settings['ROOT']]['root_config'] + print(getportageversion(settings["PORTDIR"], settings["ROOT"], settings.profile_path, settings["CHOST"], trees[settings["ROOT"]]["vartree"].dbapi)) + header_width =3D 65 header_title =3D "System Settings" if myfiles: @@ -1385,6 +1389,12 @@ def action_info(settings, trees, myopts, myfiles): writemsg_stdout("Repositories: %s\n" % \ " ".join(repo.name for repo in repos)) =20 + world_set =3D root_config.sets['selected'] + sets_line =3D "Installed sets: " + sets_line +=3D ", ".join(s for s in sorted(world_set) if s.startswith(S= ETPREFIX)) + sets_line +=3D "\n" + writemsg_stdout(sets_line) + if "--verbose" in myopts: myvars =3D list(settings) else: @@ -1408,7 +1418,6 @@ def action_info(settings, trees, myopts, myfiles): use_expand_hidden =3D set( settings.get('USE_EXPAND_HIDDEN', '').upper().split()) alphabetical_use =3D '--alphabetical' in myopts - root_config =3D trees[settings["ROOT"]]['root_config'] unset_vars =3D [] myvars.sort() for x in myvars: