emerge: allow search when profile is missing
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 07:08:00 +0000 (23:08 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Dec 2011 07:08:00 +0000 (23:08 -0800)
pym/_emerge/main.py

index 72984daf96966207fa2e276bd3eb0b3832fa359d..6acc80e99c3c754d237d649337eeea8e289acdf0 100644 (file)
@@ -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