mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
oe-buildenv-internal: Fix exit verses return
This script is sourced so we should return, not exit. (From OE-Core rev: bde54b4c4f8de696666a8c79c8cb6cf224c246e1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -37,7 +37,7 @@ py_v3_check=`/usr/bin/env python --version 2>&1 | grep "Python 3"`
|
|||||||
if [ "$py_v3_check" != "" ]; then
|
if [ "$py_v3_check" != "" ]; then
|
||||||
echo "Bitbake is not compatible with python v3"
|
echo "Bitbake is not compatible with python v3"
|
||||||
echo "Please set up python v2 as your default python interpreter"
|
echo "Please set up python v2 as your default python interpreter"
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Similarly, we now have code that doesn't parse correctly with older
|
# Similarly, we now have code that doesn't parse correctly with older
|
||||||
@@ -46,7 +46,7 @@ fi
|
|||||||
py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'`
|
py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'`
|
||||||
if [ "$py_v26_check" != "True" ]; then
|
if [ "$py_v26_check" != "True" ]; then
|
||||||
echo "BitBake requires Python 2.7.3 or later"
|
echo "BitBake requires Python 2.7.3 or later"
|
||||||
exit 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x$BDIR" = "x" ]; then
|
if [ "x$BDIR" = "x" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user