mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10: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"])
|
p = SdkToolsPopen(['adb', "devices"])
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise FDroidException("An error occured when finding devices: %s" % p.output)
|
raise FDroidException("An error occured when finding devices: %s" % p.output)
|
||||||
lines = p.output.splitlines()
|
lines = [l for l in p.output.splitlines() if not l.startswith('* ')]
|
||||||
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