Skip to content

Commit a0497f6

Browse files
committed
More cleanup
1 parent 1113cec commit a0497f6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Binary file not shown.

pythonforandroid/toolchain.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def printtail(out, name, forecolor, tail_n=0,
220220
if env is not None:
221221
info("{}ENV:{}\n{}\n".format(
222222
Fore.YELLOW, Fore.RESET, "\n".join(
223-
"set {}={}".format(n,v) for n,v in env.items())))
223+
"set {}={}".format(n, v) for n, v in env.items())))
224224
info("{}COMMAND:{}\ncd {} && {} {}\n".format(
225225
Fore.YELLOW, Fore.RESET, getcwd(), command, ' '.join(args)))
226226
warning("{}ERROR: {} failed!{}".format(
@@ -1448,15 +1448,15 @@ def _unpack_aar(self, aar, arch):
14481448
debug(" from {}".format(aar))
14491449
debug(" to {}".format(temp_dir))
14501450
shprint(sh.unzip, '-o', aar, '-d', temp_dir)
1451-
1451+
14521452
jar_src = join(temp_dir, 'classes.jar')
14531453
jar_tgt = join('libs', jar_name)
14541454
debug("copy {} jar".format(name))
14551455
debug(" from {}".format(jar_src))
14561456
debug(" to {}".format(jar_tgt))
14571457
ensure_dir('libs')
14581458
shprint(sh.cp, '-a', jar_src, jar_tgt)
1459-
1459+
14601460
so_src_dir = join(temp_dir, 'jni', arch.arch)
14611461
so_tgt_dir = join('libs', arch.arch)
14621462
debug("copy {} .so".format(name))
@@ -1475,8 +1475,9 @@ def strip_libraries(self, arch):
14751475
warning('Can\'t find strip in PATH...')
14761476
return
14771477
strip = sh.Command(strip)
1478-
filens = shprint(sh.find, join(self.dist_dir, 'private'), join(self.dist_dir, 'libs'),
1479-
'-iname', '*.so', _env=env).stdout.decode('utf-8')
1478+
filens = shprint(sh.find, join(self.dist_dir, 'private'),
1479+
join(self.dist_dir, 'libs'),
1480+
'-iname', '*.so', _env=env).stdout.decode('utf-8')
14801481
logger.info('Stripping libraries in private dir')
14811482
for filen in filens.split('\n'):
14821483
try:

0 commit comments

Comments
 (0)