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

Commit 05a447de authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Check for existence of private key before generating OTA" am: 2adfd28c am: c4a28af7

Original change: https://android-review.googlesource.com/c/platform/build/+/1581144

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I72720622f21ddf6e36a2b774da5b6c71af745776
parents 4c839bc0 c4a28af7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1405,6 +1405,13 @@ def main(argv):
          "build/make/target/product/security/testkey")
    # Get signing keys
    OPTIONS.key_passwords = common.GetKeyPasswords([OPTIONS.package_key])
    private_key_path = OPTIONS.package_key + OPTIONS.private_key_suffix
    if not os.path.exists(private_key_path):
      raise common.ExternalError(
                        "Private key {} doesn't exist. Make sure you passed the"
                        " correct key path through -k option".format(
                          private_key_path)
                          )

  if OPTIONS.source_info_dict:
    source_build_prop = OPTIONS.source_info_dict["build.prop"]