1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-12 18:20:11 +01: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]