summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-10 11:31:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 22:05:10 +0100
commit09d37ee51219edcd0be6fd24c82fce392533b39b (patch)
tree592dcc579f7d852c0fe3c405f9dc59861d5d250d /bin
parent3d7ad7ba0d1a6f688ae885817c049f2a8ced11b5 (diff)
downloadbitbake-contrib-09d37ee51219edcd0be6fd24c82fce392533b39b.tar.gz
bitbake-contrib-09d37ee51219edcd0be6fd24c82fce392533b39b.tar.bz2
bitbake-contrib-09d37ee51219edcd0be6fd24c82fce392533b39b.zip
toaster: use print function in toaster script
Used print() function instead of print statement to make toaster script to work with both python 2 and python 3 [YOCTO #9584] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/toaster4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/toaster b/bin/toaster
index 987d53c10d..921164c47e 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -112,7 +112,7 @@ stop_system()
verify_prereq() {
# Verify Django version
- reqfile=$(python -c "import os; print os.path.realpath('$BBBASEDIR/toaster-requirements.txt')")
+ reqfile=$(python -c "import os; print(os.path.realpath('$BBBASEDIR/toaster-requirements.txt'))")
exp='s/Django\([><=]\+\)\([^,]\+\),\([><=]\+\)\(.\+\)/'
exp=$exp'import sys,django;version=django.get_version().split(".");'
exp=$exp'sys.exit(not (version \1 "\2".split(".") and version \3 "\4".split(".")))/p'
@@ -163,7 +163,7 @@ fi
if [ "$TOASTER_CONF" = "" ]; then
TOASTER_CONF="$TEMPLATECONF/toasterconf.json"
- export TOASTER_CONF=$(python -c "import os; print os.path.realpath('$TOASTER_CONF')")
+ export TOASTER_CONF=$(python -c "import os; print(os.path.realpath('$TOASTER_CONF'))")
fi
if [ ! -f $TOASTER_CONF ]; then