Skip to content

Commit 71b35c1

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)