Merge "releasetools: Abort the update on apply_patch failures."
am: 2a23c0c859
* commit '2a23c0c85919bada137985f9e3b32514185b38c5':
releasetools: Abort the update on apply_patch failures.
This commit is contained in:
commit
d77af53fc6
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ class EdifyGenerator(object):
|
|||
cmd = ['apply_patch("%s",\0"%s",\0%s,\0%d'
|
||||
% (srcfile, tgtfile, tgtsha1, tgtsize)]
|
||||
for i in range(0, len(patchpairs), 2):
|
||||
cmd.append(',\0%s, package_extract_file("%s")' % patchpairs[i:i+2])
|
||||
cmd.append(');')
|
||||
cmd.append(',\0%s,\0package_extract_file("%s")' % patchpairs[i:i+2])
|
||||
cmd.append(') ||\n abort("Failed to apply patch to %s");' % (srcfile,))
|
||||
cmd = "".join(cmd)
|
||||
self.script.append(self.WordWrap(cmd))
|
||||
|
||||
|
|
Loading…
Reference in a new issue