Bug 1127457 - Fix check for zip in devicemanagerADB.py; r=armenzg

This commit is contained in:
Geoff Brown 2015-01-30 15:23:40 -07:00
parent 451ea54d50
commit a2e1094131

View File

@ -693,8 +693,13 @@ class DeviceManagerADB(DeviceManager):
return False
def _isLocalZipAvailable(self):
def _noOutput(line):
# suppress output from zip ProcessHandler
pass
try:
self._checkCmd(["zip", "-?"])
proc = ProcessHandler(["zip", "-?"], storeOutput=False, processOutputLine=_noOutput)
proc.run()
proc.wait()
except:
return False
return True