1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Omit 'daemon not running' lines when using adb devices

This fixes the 'installing on *' bug that hangs f-droid forever
This commit is contained in:
Daniel Martí 2014-01-11 13:39:11 +01:00
parent cd9c9de1eb
commit b70c41bef8

View File

@ -34,6 +34,8 @@ def devices():
if p.returncode != 0:
raise Exception("An error occured when finding devices: %s" % p.stderr)
lines = p.stdout.splitlines()
if lines[0].startswith('* daemon not running'):
lines = lines[2:]
if len(lines) < 3:
return []
lines = lines[1:-1]