From 48ffe2b2da9b44cdb0ce055c008ab21843ec98b3 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Sat, 8 Oct 2016 10:36:45 +0000 Subject: recipes: python3 fixes Signed-off-by: Denys Dmytriyenko --- recipes-ti/includes/ti-unpack.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'recipes-ti') diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc index 91010445..1922db6e 100644 --- a/recipes-ti/includes/ti-unpack.inc +++ b/recipes-ti/includes/ti-unpack.inc @@ -17,7 +17,6 @@ python do_unpack () { TI_BIN_UNPK_WDEXT ?= "" python ti_bin_do_unpack() { - import os # InstallJammer requires 32bit version of glibc @@ -48,11 +47,11 @@ python ti_bin_do_unpack() { cmd_list = cmd_string.split( ":" ) # Make the InstallJammer binary executable so we can run it - os.chmod(binfile, 0755) + os.chmod(binfile, 0o755) # Run the InstallJammer binary and accept the EULA filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string) - + # Test executable by printing installer version or help screen (--version currently broken for some installers) # - this is currently broken in some IJ installers - comment out for now #if os.system(filename + " --version") != 0: @@ -74,10 +73,9 @@ python ti_bin_do_unpack() { tarfile = bb.data.expand(tarfile, localdata) tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir) if os.system(tcmd) != 0: - print "ERROR: ti-eula-unpack: failed to extract tarfile" + print("ERROR: ti-eula-unpack: failed to extract tarfile") raise bb.build.FuncFailed() # Return to the previous directory os.chdir(save_cwd) } - -- cgit v1.2.3-54-g00ecf