mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ def devices():
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise Exception("An error occured when finding devices: %s" % p.stderr)
|
raise Exception("An error occured when finding devices: %s" % p.stderr)
|
||||||
lines = p.stdout.splitlines()
|
lines = p.stdout.splitlines()
|
||||||
|
if lines[0].startswith('* daemon not running'):
|
||||||
|
lines = lines[2:]
|
||||||
if len(lines) < 3:
|
if len(lines) < 3:
|
||||||
return []
|
return []
|
||||||
lines = lines[1:-1]
|
lines = lines[1:-1]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue