Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ebddd40 authored by Tianjie Xu's avatar Tianjie Xu Committed by Android (Google) Code Review
Browse files

Merge "Remove post-install verification" into nyc-dev

parents 4b941608 b2deb220
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1335,6 +1335,7 @@ class BlockDifference(object):
    if progress:
      script.ShowProgress(progress, 0)
    self._WriteUpdate(script, output_zip)
    if OPTIONS.verify:
      self._WritePostInstallVerifyScript(script)

  def WriteStrictVerifyScript(self, script):
@@ -1459,7 +1460,8 @@ class BlockDifference(object):

    call = ('block_image_update("{device}", '
            'package_extract_file("{partition}.transfer.list"), '
            '"{partition}.new.dat", "{partition}.patch.dat");\n'.format(
            '"{partition}.new.dat", "{partition}.patch.dat") ||\n'
            '    abort("Failed to update {partition} image.");'.format(
                device=self.device, partition=self.partition))
    script.AppendExtra(script.WordWrap(call))