Autounmask as separate step

When autounmask-write is set and there is a flag that needs to be
written, emerge will write the change and then exit without building.
This change should avoid cases where nothing will build because of this
behavior.
This commit is contained in:
JD Friedrikson 2017-06-01 20:12:24 -04:00
parent c8d79f0d00
commit b92d5eade4
No known key found for this signature in database
GPG key ID: E113967DDD441EEC

View file

@ -6143,11 +6143,15 @@ install_suse_check_services() {
#
# Gentoo Install Functions.
#
__autounmask() {
emerge --autounmask-write --autounmask-only "${@}"; return $?
}
__emerge() {
if [ "$_GENTOO_USE_BINHOST" -eq $BS_TRUE ]; then
emerge --autounmask-write --getbinpkg "${@}"; return $?
emerge --getbinpkg "${@}"; return $?
fi
emerge --autounmask-write "${@}"; return $?
emerge "${@}"; return $?
}
__gentoo_config_protection() {
@ -6185,15 +6189,20 @@ __gentoo_post_dep() {
__gentoo_config_protection
if [ "$_INSTALL_CLOUD" -eq $BS_TRUE ]; then
__autounmask 'dev-python/libcloud'
__emerge -v 'dev-python/libcloud'
fi
__autounmask 'dev-python/requests'
__autounmask 'app-admin/salt'
__emerge -vo 'dev-python/requests'
__emerge -vo 'app-admin/salt'
if [ "${_EXTRA_PACKAGES}" != "" ]; then
echoinfo "Installing the following extra packages as requested: ${_EXTRA_PACKAGES}"
# shellcheck disable=SC2086
__autounmask ${_EXTRA_PACKAGES} || return 1
__emerge -v ${_EXTRA_PACKAGES} || return 1
fi
}