Fix unbound variable by creating a wrapper function for Gentoo's emerge. Fixes #201.

This commit is contained in:
Pedro Algarvio 2013-08-09 00:04:06 +01:00
parent 494eafa8dd
commit 095701d6c8

View file

@ -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() {