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

Commit 790214a4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix the signing error on no-system-image targets"

parents 99bec023 8d4b7240
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -520,9 +520,14 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
                       compressed_extension):
                       compressed_extension):
  # maxsize measures the maximum filename length, including the ones to be
  # maxsize measures the maximum filename length, including the ones to be
  # skipped.
  # skipped.
  try:
    maxsize = max(
    maxsize = max(
        [len(os.path.basename(i.filename)) for i in input_tf_zip.infolist()
        [len(os.path.basename(i.filename)) for i in input_tf_zip.infolist()
         if GetApkFileInfo(i.filename, compressed_extension, [])[0]])
         if GetApkFileInfo(i.filename, compressed_extension, [])[0]])
  except ValueError:
    # Sets this to zero for targets without APK files, e.g., gki_arm64.
    maxsize = 0

  system_root_image = misc_info.get("system_root_image") == "true"
  system_root_image = misc_info.get("system_root_image") == "true"


  for info in input_tf_zip.infolist():
  for info in input_tf_zip.infolist():