deprecated_profile_check: suggest portage upgrade
authorZac Medico <zmedico@gentoo.org>
Mon, 11 Feb 2013 03:06:20 +0000 (19:06 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 11 Feb 2013 03:06:20 +0000 (19:06 -0800)
commit34d8c817080f34f1a0b44cf05b99beacfc0d6314
tree90d8400cee73e1eea0e121fe485a371b817fb747
parente64dd7eb67c3a2fc7aa6c6e42d6df156d1553c8f
deprecated_profile_check: suggest portage upgrade

If the new profile can't be parsed due to unsupported EAPI, then show a
warning like this:

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:
        default/linux/x86/13.0/desktop

!!! Unable to parse profile: '/usr/portage/profiles/default/linux/x86/13.0/desktop'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/eapi-5-files/eapi'

 * You must update portage before you can migrate to the above profile.
 * In order to update portage, run 'emerge --oneshot portage'.
pym/portage/package/ebuild/deprecated_profile_check.py