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

Commit d3554231 authored by Sen Jiang's avatar Sen Jiang Committed by android-build-merger
Browse files

Merge "Specify --max_timestamp when calling brillo_update_payload." into oc-dev

am: 4378910f

Change-Id: I9fad200f94443f906cf7d53317db449543b5b6c6
parents d57400b4 4378910f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -1077,6 +1077,11 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file,
         "--target_image", target_file]
         "--target_image", target_file]
  if source_file is not None:
  if source_file is not None:
    cmd.extend(["--source_image", source_file])
    cmd.extend(["--source_image", source_file])
  if OPTIONS.downgrade:
    max_timestamp = GetBuildProp("ro.build.date.utc", OPTIONS.source_info_dict)
  else:
    max_timestamp = metadata["post-timestamp"]
  cmd.extend(["--max_timestamp", max_timestamp])
  p1 = common.Run(cmd, stdout=log_file, stderr=subprocess.STDOUT)
  p1 = common.Run(cmd, stdout=log_file, stderr=subprocess.STDOUT)
  p1.communicate()
  p1.communicate()
  assert p1.returncode == 0, "brillo_update_payload generate failed"
  assert p1.returncode == 0, "brillo_update_payload generate failed"