diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-17 16:38:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-18 17:33:15 +0100 |
commit | bd30668838924fe4042db745704341e36819e12a (patch) | |
tree | 1dd9f742b3f0943d201930ba3cabbdcdb44e2d95 | |
parent | 609a3671a9aec7a02a99f84e1082961771ce2fef (diff) | |
download | poky-bd30668838924fe4042db745704341e36819e12a.tar.gz |
oe-buildenv-internal: Ensure error messages got to stderr
(From OE-Core rev: 631a0ec8cc7e53c2df2fc62c5276f940ed45b39e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/oe-buildenv-internal | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 62a410e312..bba6f8fea3 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -35,8 +35,8 @@ fi | |||
35 | # can offer a meaningful error message. | 35 | # can offer a meaningful error message. |
36 | py_v3_check=`/usr/bin/env python --version 2>&1 | grep "Python 3"` | 36 | py_v3_check=`/usr/bin/env python --version 2>&1 | grep "Python 3"` |
37 | if [ "$py_v3_check" != "" ]; then | 37 | if [ "$py_v3_check" != "" ]; then |
38 | echo "Bitbake is not compatible with python v3" | 38 | echo >&2 "Bitbake is not compatible with python v3" |
39 | echo "Please set up python v2 as your default python interpreter" | 39 | echo >&2 "Please set up python v2 as your default python interpreter" |
40 | return 1 | 40 | return 1 |
41 | fi | 41 | fi |
42 | 42 | ||
@@ -45,7 +45,7 @@ fi | |||
45 | # vigilant for any other new feature use, just check the version here. | 45 | # vigilant for any other new feature use, just check the version here. |
46 | py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'` | 46 | py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'` |
47 | if [ "$py_v26_check" != "True" ]; then | 47 | if [ "$py_v26_check" != "True" ]; then |
48 | echo "BitBake requires Python 2.7.3 or later" | 48 | echo >&2 "BitBake requires Python 2.7.3 or later" |
49 | return 1 | 49 | return 1 |
50 | fi | 50 | fi |
51 | 51 | ||