avoid start message of adb

This commit is contained in:
Mathieu Virbel 2013-07-06 17:29:19 +02:00
parent a4ea97ac03
commit 4fe9296947

View file

@ -472,10 +472,10 @@ class TargetAndroid(Target):
if serial: if serial:
return serial.split(',') return serial.split(',')
l = self.buildozer.cmd('{} devices'.format(self.adb_cmd), l = self.buildozer.cmd('{} devices'.format(self.adb_cmd),
get_stdout=True)[0].splitlines()[1:-1] get_stdout=True)[0].splitlines()
serials = [] serials = []
for serial in l: for serial in l:
if serial.startswith('*'): if serial.startswith('*') or serial.startswith('List '):
continue continue
serials.append(serial.split()[0]) serials.append(serial.split()[0])
self._serials = serials self._serials = serials