spidermonkey: fix improper error handling

Mixing `local` and `|| die` will never work because the exit status
being tested is that of local, not any subcommands that may be involved.
This commit is contained in:
Michael Marineau 2015-05-06 19:33:06 -07:00
parent 8e7f901639
commit 466fcb3297

View File

@ -56,6 +56,7 @@ src_prepare() {
} }
src_configure() { src_configure() {
local nspr_cflags nspr_libs
cd "${BUILDDIR}" || die cd "${BUILDDIR}" || die
# Mozilla screws up the meaning of BUILD, HOST, and TARGET :( # Mozilla screws up the meaning of BUILD, HOST, and TARGET :(
@ -67,8 +68,8 @@ src_configure() {
HOST_AR="${BUILD_AR}" HOST_RANLIB="${BUILD_RANLIB}" HOST_AR="${BUILD_AR}" HOST_RANLIB="${BUILD_RANLIB}"
# Use pkg-config instead of nspr-config to use $SYSROOT # Use pkg-config instead of nspr-config to use $SYSROOT
local nspr_cflags="$(${PKG_CONFIG} --cflags nspr)" || die nspr_cflags="$(${PKG_CONFIG} --cflags nspr)" || die
local nspr_libs="$(${PKG_CONFIG} --libs nspr)" || die nspr_libs="$(${PKG_CONFIG} --libs nspr)" || die
econf \ econf \
${myopts} \ ${myopts} \