chiark / gitweb /
install: filter out log messages better
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 11 Nov 2015 12:09:29 +0000 (13:09 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 11 Nov 2015 12:09:29 +0000 (13:09 +0100)
fdroidserver/install.py

index 766cd6a0e586664e6516454be7ca7aadaa5424bc..af4a71bee4ef279cf9722c2385cee5e48f7c5634 100644 (file)
@@ -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]