]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: bin Use python 3 for our django modules check
authorMichael Wood <michael.g.wood@intel.com>
Fri, 10 Jun 2016 10:01:10 +0000 (11:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 10:08:58 +0000 (11:08 +0100)
Explicitly use python3 so that the modules for python3 are checked.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
bin/toaster

index be1bb9c4f7b3ec9747a5ba6ee006413d7f4c03a0..e3a0dae48f3e3554709e6fe60beedb50ef8247f6 100755 (executable)
@@ -115,7 +115,7 @@ verify_prereq() {
     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'
-    if ! sed -n "$exp" $reqfile | python - ; then
+    if ! sed -n "$exp" $reqfile | python3 - ; then
         req=`grep ^Django $reqfile`
         echo "This program needs $req"
         echo "Please install with pip install -r $reqfile"