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 1RZH2h-0005BZ-QJ for garchives@archives.gentoo.org; Sat, 10 Dec 2011 07:08:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1DCD421C0E9; Sat, 10 Dec 2011 07:08:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DFEAD21C0E9 for ; Sat, 10 Dec 2011 07:08:11 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4750B1B4022 for ; Sat, 10 Dec 2011 07:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7E15980042 for ; Sat, 10 Dec 2011 07:08:10 +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: <6081171d9920c6902aced768ce19af94ed3c7320.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 6081171d9920c6902aced768ce19af94ed3c7320 Date: Sat, 10 Dec 2011 07:08:10 +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: 6bac8f5e-3522-4906-a346-bea69d9233e2 X-Archives-Hash: 820f92b89f68644c789cb014bd4f18f7 commit: 6081171d9920c6902aced768ce19af94ed3c7320 Author: Zac Medico gentoo org> AuthorDate: Sat Dec 10 07:08:00 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Dec 10 07:08:00 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D6081171d emerge: allow search when profile is missing --- pym/_emerge/main.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 72984da..6acc80e 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1560,7 +1560,7 @@ def config_protect_check(trees): writemsg_level(msg, level=3Dlogging.WARN, noiselevel=3D-1) =20 def profile_check(trees, myaction): - if myaction in ("help", "info", "sync", "version"): + if myaction in ("help", "info", "search", "sync", "version"): return os.EX_OK for root, root_trees in trees.items(): if root_trees["root_config"].settings.profiles: @@ -1570,7 +1570,7 @@ def profile_check(trees, myaction): msg =3D ("Your current profile is invalid. If you have just changed " "your profile configuration, you should revert back to the " "previous configuration. Allowed actions are limited to " - "--help, --info, --sync, and --version.") + "--help, --info, --search, --sync, and --version.") writemsg_level("".join("!!! %s\n" % l for l in textwrap.wrap(msg, 70))= , level=3Dlogging.ERROR, noiselevel=3D-1) return 1