mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
install: filter out log messages better
This commit is contained in:
parent
af7178f2fe
commit
0d758daa22
1 changed files with 1 additions and 3 deletions
|
|
@ -35,9 +35,7 @@ def devices():
|
|||
p = SdkToolsPopen(['adb', "devices"])
|
||||
if p.returncode != 0:
|
||||
raise FDroidException("An error occured when finding devices: %s" % p.output)
|
||||
lines = p.output.splitlines()
|
||||
if lines[0].startswith('* daemon not running'):
|
||||
lines = lines[2:]
|
||||
lines = [l for l in p.output.splitlines() if not l.startswith('* ')]
|
||||
if len(lines) < 3:
|
||||
return []
|
||||
lines = lines[1:-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue