Skip to content

Commit 112fdae

Browse files
committed
fix root directory for tgz extraction
1 parent 903d661 commit 112fdae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ def unpack(self, arch):
19251925
sh.tar('xzf', extraction_filename)
19261926
root_directory = shprint(
19271927
sh.tar, 'tzf', extraction_filename).stdout.decode(
1928-
'utf-8').split('\n')[0].strip('/')
1928+
'utf-8').split('\n')[0].split('/')[0]
19291929
if root_directory != directory_name:
19301930
shprint(sh.mv, root_directory, directory_name)
19311931
elif (extraction_filename.endswith('.tar.bz2') or

0 commit comments

Comments
 (0)