| Index: build/android/pylib/utils/md5sum.py
|
| diff --git a/build/android/pylib/utils/md5sum.py b/build/android/pylib/utils/md5sum.py
|
| index 4d7d0b0020454018821f285ad4f4acc21a7202ef..d59245c84544f58642bb03a08e85571dd406032c 100644
|
| --- a/build/android/pylib/utils/md5sum.py
|
| +++ b/build/android/pylib/utils/md5sum.py
|
| @@ -34,9 +34,11 @@ def CalculateHostMd5Sums(paths):
|
| if isinstance(paths, basestring):
|
| paths = [paths]
|
|
|
| - out = cmd_helper.GetCmdOutput(
|
| - [os.path.join(constants.GetOutDirectory(), 'md5sum_bin_host')] +
|
| - [p for p in paths])
|
| + md5sum_bin_host_path = os.path.join(
|
| + constants.GetOutDirectory(), 'md5sum_bin_host')
|
| + if not os.path.exists(md5sum_bin_host_path):
|
| + raise IOError('File not built: %s' % md5sum_bin_host_path)
|
| + out = cmd_helper.GetCmdOutput([md5sum_bin_host_path] + [p for p in paths])
|
|
|
| return _ParseMd5SumOutput(out.splitlines())
|
|
|
| @@ -53,9 +55,10 @@ def CalculateDeviceMd5Sums(paths, device):
|
| paths = [paths]
|
|
|
| if not device.FileExists(MD5SUM_DEVICE_BIN_PATH):
|
| - device.adb.Push(
|
| - os.path.join(constants.GetOutDirectory(), 'md5sum_dist'),
|
| - MD5SUM_DEVICE_LIB_PATH)
|
| + md5sum_dist_path = os.path.join(constants.GetOutDirectory(), 'md5sum_dist')
|
| + if not os.path.exists(md5sum_dist_path):
|
| + raise IOError('File not built: %s' % md5sum_dist_path)
|
| + device.adb.Push(md5sum_dist_path, MD5SUM_DEVICE_LIB_PATH)
|
|
|
| out = []
|
|
|
|
|