Improve the invalid profile msg (bug 379327).
authorMark Wagner <carnildo@gmail.com>
Tue, 16 Aug 2011 05:38:00 +0000 (22:38 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 16 Aug 2011 05:38:00 +0000 (22:38 -0700)
pym/_emerge/main.py

index 283021460d7f720f81ec839d2b957cc2eabce093..84c4c58b852414d55161d8370dd11ffbbe3ac19c 100644 (file)
@@ -1466,10 +1466,10 @@ def profile_check(trees, myaction):
                        continue
                # generate some profile related warning messages
                validate_ebuild_environment(trees)
-               msg = "If you have just changed your profile configuration, you " + \
-                       "should revert back to the previous configuration. Due to " + \
-                       "your current profile being invalid, allowed actions are " + \
-                       "limited to --help, --info, --sync, and --version."
+               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.")
                writemsg_level("".join("!!! %s\n" % l for l in textwrap.wrap(msg, 70)),
                        level=logging.ERROR, noiselevel=-1)
                return 1