From b5dbf2cbd4a0d6395ebc82999bda1981c8cd3f0a Mon Sep 17 00:00:00 2001 From: Andrei Varvara Date: Wed, 9 Dec 2015 13:48:17 +0100 Subject: linux-qoriq-common.inc: Replaced python print with yocto command When printing from a recipe it should be used the printing functions provided by yocto. Used bb.note for info printing and bb.error for error exception printing. Signed-off-by: Andrei Varvara Signed-off-by: George Nita --- recipes-kernel/linux/linux-qoriq-common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-kernel/linux/linux-qoriq-common.inc b/recipes-kernel/linux/linux-qoriq-common.inc index c5430c8..aa1e6ea 100644 --- a/recipes-kernel/linux/linux-qoriq-common.inc +++ b/recipes-kernel/linux/linux-qoriq-common.inc @@ -43,13 +43,13 @@ do_unpack_append() { import shutil workdir = d.getVar("WORKDIR", True) sourcedir = d.getVar("S", True) - print "Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir) + bb.note("Copy cfg folder from workdir %s to source directory %s" % (workdir, sourcedir)) src = workdir + "/cfg" dst = sourcedir + "/cfg" try: shutil.copytree(src, dst) except shutil.Error as e: - print "Directory not copied. Error: %s" % e + bb.error("Directory not copied. Error: %s" % e) except OSError as e: - print "Directory not copied. Error: %s" % e + bb.error("Directory not copied. Error: %s" % e) } -- cgit v1.2.3-54-g00ecf