From: Mike Frysinger Date: Tue, 12 Mar 2013 00:43:09 +0000 (-0400) Subject: ebuild: reformat user error message to be a bit more readable X-Git-Tag: v2.2.0_alpha167~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d7ea946b1fa85fe421d993fad08159d910a68be;p=portage.git ebuild: reformat user error message to be a bit more readable Signed-off-by: Mike Frysinger --- diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py index 95a775134..5057f95d5 100644 --- a/pym/portage/package/ebuild/_config/LocationsManager.py +++ b/pym/portage/package/ebuild/_config/LocationsManager.py @@ -183,14 +183,17 @@ class LocationsManager(object): offenders = sorted(x for x in offenders if os.path.isdir(os.path.join(currentPath, x))) if offenders: - warnings.warn(_("Profile '%(profile_path)s' in repository " - "'%(repo_name)s' is implicitly using 'portage-1' profile format, but " - "the repository profiles are not marked as that format. This will break " - "in the future. Please either convert the following paths " - "to files, or add\nprofile-formats = portage-1\nto the " - "repositories layout.conf. Files: '%(files)s'\n") + warnings.warn(_( + "\nThe selected profile is implicitly using the 'portage-1' format:\n" + "\tprofile = %(profile_path)s\n" + "But this repository is not using that format:\n" + "\trepo = %(repo_name)s\n" + "This will break in the future. Please convert these dirs to files:\n" + "\t%(files)s\n" + "Or, add this line to the repository's layout.conf:\n" + "\tprofile-formats = portage-1") % dict(profile_path=currentPath, repo_name=repo_loc, - files=', '.join(offenders))) + files='\n\t'.join(offenders))) parentsFile = os.path.join(currentPath, "parent") if exists_raise_eaccess(parentsFile):