Skip to content

Commit 76e899e

Browse files
committed
bootstrap: don't try to copy eggs if there is none of them. (otherwise it crash on mv -t).
1 parent 6beac27 commit 76e899e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,6 @@ def fry_eggs(self, sitepackages):
261261
if isdir(rd) and d.endswith('.egg'):
262262
info(' ' + d)
263263
files = [join(rd, f) for f in listdir(rd) if f != 'EGG-INFO']
264-
shprint(sh.mv, '-t', sitepackages, *files)
264+
if files:
265+
shprint(sh.mv, '-t', sitepackages, *files)
265266
shprint(sh.rm, '-rf', d)
266-

0 commit comments

Comments
 (0)