Skip to content

Commit 2006cad

Browse files
committed
Merge pull request kivy#519 from kived/tgz-fix
fix root directory for tgz extraction
2 parents 30ef4b0 + 112fdae commit 2006cad

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
@@ -1933,7 +1933,7 @@ def unpack(self, arch):
19331933
sh.tar('xzf', extraction_filename)
19341934
root_directory = shprint(
19351935
sh.tar, 'tzf', extraction_filename).stdout.decode(
1936-
'utf-8').split('\n')[0].strip('/')
1936+
'utf-8').split('\n')[0].split('/')[0]
19371937
if root_directory != directory_name:
19381938
shprint(sh.mv, root_directory, directory_name)
19391939
elif (extraction_filename.endswith('.tar.bz2') or

0 commit comments

Comments
 (0)