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:
parent
cd9c9de1eb
commit
b70c41bef8
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user