Skip to content

Commit a2e63c9

Browse files
committed
Fix applying strip when the file name is ''
1 parent 7a515d0 commit a2e63c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ def strip_libraries(self, arch):
278278

279279
logger.info('Stripping libraries in private dir')
280280
for filen in filens.split('\n'):
281+
if not filen:
282+
continue # skip the last ''
281283
try:
282284
strip(filen, _env=env)
283285
except sh.ErrorReturnCode_1:

0 commit comments

Comments
 (0)