Skip to content

Commit 3bf88f7

Browse files
committed
bugfix: unpack for nonzip archives also needs to compare basename(dir)
1 parent ccb0f8e commit 3bf88f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def unpack(self, arch):
409409
sh.tar('xf', extraction_filename)
410410
root_directory = sh.tar('tf', extraction_filename).stdout.decode(
411411
'utf-8').split('\n')[0].split('/')[0]
412-
if root_directory != directory_name:
412+
if root_directory != basename(directory_name):
413413
shprint(sh.mv, root_directory, directory_name)
414414
else:
415415
raise Exception(

0 commit comments

Comments
 (0)