mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Fix unbound variable by creating a wrapper function for Gentoo's emerge. Fixes #201.
This commit is contained in:
parent
494eafa8dd
commit
095701d6c8
1 changed files with 5 additions and 5 deletions
|
@ -2602,11 +2602,11 @@ install_suse_11_restart_daemons() {
|
|||
#
|
||||
# Gentoo Install Functions.
|
||||
#
|
||||
__gentoo_use_binhost() {
|
||||
__emerge() {
|
||||
if [ $BS_GENTOO_USE_BINHOST -eq $BS_TRUE ]; then
|
||||
return "--getbinpkg"
|
||||
emerge --getbinpkg $@; return $?
|
||||
fi
|
||||
return ""
|
||||
emerge $@; return $?
|
||||
}
|
||||
|
||||
__gentoo_set_ackeys() {
|
||||
|
@ -2652,7 +2652,7 @@ __gentoo_post_dep() {
|
|||
# End of bootstrap-salt keywords.
|
||||
_EOT
|
||||
# the -o option asks it to emerge the deps but not the package.
|
||||
emerge ${__gentoo_use_binhost} -vo salt
|
||||
__emerge -vo salt
|
||||
}
|
||||
|
||||
install_gentoo_deps() {
|
||||
|
@ -2669,7 +2669,7 @@ install_gentoo_git_deps() {
|
|||
}
|
||||
|
||||
install_gentoo_stable() {
|
||||
emerge ${__gentoo_use_binhost} -v salt || return 1
|
||||
__emerge -v salt || return 1
|
||||
}
|
||||
|
||||
install_gentoo_git() {
|
||||
|
|
Loading…
Add table
Reference in a new issue