use timeout=None to prevent TIMEOUT during child.expect

This commit is contained in:
Mathieu Virbel 2014-04-09 09:50:47 +02:00
parent 9b4db49f02
commit 7c19679cdd

View file

@ -295,7 +295,8 @@ class TargetAndroid(Target):
from buildozer.libs.pexpect import EOF
child = self.buildozer.cmd_expect('{} update sdk -u -a -t {}'.format(
self.android_cmd, packages,
cwd=self.buildozer.global_platform_dir))
cwd=self.buildozer.global_platform_dir),
timeout=None)
while True:
index = child.expect([EOF, '[y/n]: '])
if index == 0: