Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D259EE00CD9; Fri, 10 Jun 2016 03:05:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FSL_HELO_HOME,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 X-Spam-HAM-Report: * 1.0 FSL_HELO_HOME FSL_HELO_HOME * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.46 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DD39CE00CC0 for ; Fri, 10 Jun 2016 03:05:39 -0700 (PDT) Received: by mail-wm0-f46.google.com with SMTP id m124so95020469wme.1 for ; Fri, 10 Jun 2016 03:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=rUnw+dxrGxikPgfsvadYFzonmmQeFyIX2K/cOC/KCxs=; b=ogN41IzMOGHTjVxP7QLUSu/AvAI0Qb4cHgSJeVBV37jF8338eyyTVKCpc5/2+bKRKP KVgYFonXA9Aajtnph7sI6XLNDqaOGj5uvpaMLPqHQxdCDgxU+eJ8kZMYJ3AWZ8yyJCa0 JKMO4O2QVdv0JdH1lcVNTu2wuffYgt/2aUlkd4PfYFL4aGWbR0NF6Y8Z/EwQ0/bdOKSd at25KLl5tJtEAVUR24QSJmQZxgX/vt146F6Az2RqwG16VtluVU1Ey6ZHl4Y3AjexV/Bx jkKwK4z4x7EV3PQ7q6LfLafrNCAV3gglRJQgaqbRJX32zKJE88eX6Ta3pOw/gdScqOrX uJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rUnw+dxrGxikPgfsvadYFzonmmQeFyIX2K/cOC/KCxs=; b=nGZIJzOqTv3a0Ux6Eha5pTRiOOUwd5stjpw30sEqKszid5HBe3LA/qHz6VvmC/QxAR TTbmoPQ7DgEctvhSA5L4Q+e1wiyITj1SR/fepKFgmCto9wcue5Z/1tAQ7aaEcfUzB1r0 VhchWbZpZZkBHcmxDNYWPZfY94+I850sjWUIhepHb/E78Ia63GYRLwsSBveGfLoFZfoG qNjqpVi70bIFNW+c2r6K6edfV017od4+EEGJxXXdTggMy+6DfiFzA1uDpu0/u5PcH+PR x5gb1rrZvs028TJOR7e0cjszbCfp/dmq1RfZZViUMFCNPrPDJJLvx1fJMjoMAHPDV/jJ RWwg== X-Gm-Message-State: ALyK8tISocUl4WVxR65sivqCV4K1tmr6r7EMXDEx2DJGOmWK3fQaq7ZM9Quz+kcXUImOb76r X-Received: by 10.28.31.213 with SMTP id f204mr16832916wmf.69.1465553138672; Fri, 10 Jun 2016 03:05:38 -0700 (PDT) Received: from orion.home (host109-150-165-138.range109-150.btcentralplus.com. [109.150.165.138]) by smtp.gmail.com with ESMTPSA id u70sm25083410wmd.4.2016.06.10.03.05.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 03:05:38 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 10 Jun 2016 11:05:24 +0100 Message-Id: <1465553124-5058-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: bin Use python 3 for our django modules check X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 10:05:42 -0000 Explicitly use python3 so that the modules for python3 are checked. Signed-off-by: Michael Wood --- bitbake/bin/toaster | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index be1bb9c..e3a0dae 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -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" -- 2.7.4