portage._compat_upgrade.binpkg_compression module

portage._compat_upgrade.binpkg_compression.main()

If the current installation is still configured to use the old default BINPKG_COMPRESS=bzip2 setting, then patch make.globals inside ${ED} to maintain backward compatibility, ensuring that binary package consumers are not caught off guard. This is intended to be called from the ebuild as follows:

pkg_preinst() {

python_setup env -u BINPKG_COMPRESS

PYTHONPATH=”${D%/}$(python_get_sitedir)${PYTHONPATH:+:${PYTHONPATH}}” “${PYTHON}” -m portage._compat_upgrade.binpkg_compression || die

}