From 76e899e4af1a01d921a16e0170426f06100b5dcd Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 15 Jan 2016 17:47:04 +0100 Subject: [PATCH] bootstrap: don't try to copy eggs if there is none of them. (otherwise it crash on mv -t). --- pythonforandroid/bootstrap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/bootstrap.py b/pythonforandroid/bootstrap.py index 546199c00e..59e7efe536 100644 --- a/pythonforandroid/bootstrap.py +++ b/pythonforandroid/bootstrap.py @@ -261,6 +261,6 @@ def fry_eggs(self, sitepackages): if isdir(rd) and d.endswith('.egg'): info(' ' + d) files = [join(rd, f) for f in listdir(rd) if f != 'EGG-INFO'] - shprint(sh.mv, '-t', sitepackages, *files) + if files: + shprint(sh.mv, '-t', sitepackages, *files) shprint(sh.rm, '-rf', d) -