portage._compat_upgrade.default_locations module

portage._compat_upgrade.default_locations.main()

If the current installation is still configured to use any of the legacy default /usr/portage locations, then patch make.globals and repos.conf inside ${ED} to maintain compatible defaults. This is intended to be called from the ebuild as follows:

pkg_preinst() {

python_setup python_export PYTHON_SITEDIR env -u DISTDIR -u PORTAGE_OVERRIDE_EPREFIX -u PORTAGE_REPOSITORIES -u PORTDIR -u PORTDIR_OVERLAY PYTHONPATH=”${ED%/}${PYTHON_SITEDIR}${PYTHONPATH:+:${PYTHONPATH}}” “${PYTHON}” -m portage._compat_upgrade.default_locations || die

}