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

Commit ea43cfbe 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...

Merge "Specify --max_timestamp when calling brillo_update_payload." into nyc-dr1-dev am: 21a26c98 am: 64e3da49
am: ed62f299

Change-Id: I88c06fb665f834a006b381bc0a2eb02e6303a690
parents 82b90c81 ed62f299
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1326,6 +1326,11 @@ def WriteABOTAPackageWithBrilloScript(target_file, output_file,
         "--target_image", target_file]
  if source_file is not None:
    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=subprocess.PIPE)
  p1.wait()
  assert p1.returncode == 0, "brillo_update_payload generate failed"