]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-buildenv-internal: Ensure error messages got to stderr
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jun 2013 15:38:24 +0000 (16:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jun 2013 16:02:47 +0000 (17:02 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-buildenv-internal

index 62a410e3128d190d8163cc256ca5d965bbcaf444..bba6f8fea332867dccc215dc9c8b9ee00b2d137b 100755 (executable)
@@ -35,8 +35,8 @@ fi
 # can offer a meaningful error message.
 py_v3_check=`/usr/bin/env python --version 2>&1 | grep "Python 3"`
 if [ "$py_v3_check" != "" ]; then
-       echo "Bitbake is not compatible with python v3"
-       echo "Please set up python v2 as your default python interpreter"
+       echo >&2 "Bitbake is not compatible with python v3"
+       echo >&2 "Please set up python v2 as your default python interpreter"
        return 1
 fi
 
@@ -45,7 +45,7 @@ fi
 # vigilant for any other new feature use, just check the version here.
 py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'`
 if [ "$py_v26_check" != "True" ]; then
-       echo "BitBake requires Python 2.7.3 or later"
+       echo >&2 "BitBake requires Python 2.7.3 or later"
        return 1
 fi