diff options
author | Denys Dmytriyenko <denys@ti.com> | 2016-10-08 10:36:45 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-10-10 05:48:51 -0400 |
commit | 48ffe2b2da9b44cdb0ce055c008ab21843ec98b3 (patch) | |
tree | 19b1a8e3671093505a323522a3a26a71d47145a5 /recipes-ti | |
parent | 02a43b25f76fe89c17e1de140e35a4c2272cd580 (diff) | |
download | meta-ti-48ffe2b2da9b44cdb0ce055c008ab21843ec98b3.tar.gz |
recipes: python3 fixes
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/includes/ti-unpack.inc | 8 |
1 files changed, 3 insertions, 5 deletions
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 () { | |||
17 | 17 | ||
18 | TI_BIN_UNPK_WDEXT ?= "" | 18 | TI_BIN_UNPK_WDEXT ?= "" |
19 | python ti_bin_do_unpack() { | 19 | python ti_bin_do_unpack() { |
20 | |||
21 | import os | 20 | import os |
22 | 21 | ||
23 | # InstallJammer requires 32bit version of glibc | 22 | # InstallJammer requires 32bit version of glibc |
@@ -48,11 +47,11 @@ python ti_bin_do_unpack() { | |||
48 | cmd_list = cmd_string.split( ":" ) | 47 | cmd_list = cmd_string.split( ":" ) |
49 | 48 | ||
50 | # Make the InstallJammer binary executable so we can run it | 49 | # Make the InstallJammer binary executable so we can run it |
51 | os.chmod(binfile, 0755) | 50 | os.chmod(binfile, 0o755) |
52 | 51 | ||
53 | # Run the InstallJammer binary and accept the EULA | 52 | # Run the InstallJammer binary and accept the EULA |
54 | filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string) | 53 | filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string) |
55 | 54 | ||
56 | # Test executable by printing installer version or help screen (--version currently broken for some installers) | 55 | # Test executable by printing installer version or help screen (--version currently broken for some installers) |
57 | # - this is currently broken in some IJ installers - comment out for now | 56 | # - this is currently broken in some IJ installers - comment out for now |
58 | #if os.system(filename + " --version") != 0: | 57 | #if os.system(filename + " --version") != 0: |
@@ -74,10 +73,9 @@ python ti_bin_do_unpack() { | |||
74 | tarfile = bb.data.expand(tarfile, localdata) | 73 | tarfile = bb.data.expand(tarfile, localdata) |
75 | tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir) | 74 | tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir) |
76 | if os.system(tcmd) != 0: | 75 | if os.system(tcmd) != 0: |
77 | print "ERROR: ti-eula-unpack: failed to extract tarfile" | 76 | print("ERROR: ti-eula-unpack: failed to extract tarfile") |
78 | raise bb.build.FuncFailed() | 77 | raise bb.build.FuncFailed() |
79 | 78 | ||
80 | # Return to the previous directory | 79 | # Return to the previous directory |
81 | os.chdir(save_cwd) | 80 | os.chdir(save_cwd) |
82 | } | 81 | } |
83 | |||