From b70c41bef85ac26854d4f9b5a7ef197934d73cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sat, 11 Jan 2014 13:39:11 +0100 Subject: [PATCH] Omit 'daemon not running' lines when using adb devices This fixes the 'installing on *' bug that hangs f-droid forever --- fdroidserver/install.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/install.py b/fdroidserver/install.py index ca32137d..85d6e34a 100644 --- a/fdroidserver/install.py +++ b/fdroidserver/install.py @@ -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]