summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/main.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-09 23:08:00 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-09 23:08:00 -0800
commit6081171d9920c6902aced768ce19af94ed3c7320 (patch)
tree8e409862a5c65745367130b7fe81b272791854ca /pym/_emerge/main.py
parent716ad204d2107092704e4188f3a73736ec836d44 (diff)
downloadportage-6081171d9920c6902aced768ce19af94ed3c7320.tar.gz
portage-6081171d9920c6902aced768ce19af94ed3c7320.tar.bz2
portage-6081171d9920c6902aced768ce19af94ed3c7320.zip
emerge: allow search when profile is missing
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r--pym/_emerge/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 72984daf9..6acc80e99 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1560,7 +1560,7 @@ def config_protect_check(trees):
writemsg_level(msg, level=logging.WARN, noiselevel=-1)
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 = ("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=logging.ERROR, noiselevel=-1)
return 1