mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
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:
parent
c8d79f0d00
commit
b92d5eade4
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue