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

Unverified Commit a1e00722 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Michael Bestas
Browse files

build_image: Unbreak verity/FEC generation

Change-Id: Icbd36b11659ced7764599c5d2e0e91be67a3e4bc
parent 451a3f80
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ def RunCommand(cmd):

def GetVerityFECSize(partition_size):
  cmd = "fec -s %d" % partition_size
  status, output = commands.getstatusoutput(cmd)
  status, output = getstatusoutput(cmd)
  if status:
    print output
    return False, 0
@@ -143,7 +143,7 @@ AdjustPartitionSizeForVerity.results = {}
def BuildVerityFEC(sparse_image_path, verity_path, verity_fec_path):
  cmd = "fec -e %s %s %s" % (sparse_image_path, verity_path, verity_fec_path)
  print cmd
  status, output = commands.getstatusoutput(cmd)
  status, output = getstatusoutput(cmd)
  if status:
    print "Could not build FEC data! Error: %s" % output
    return False
@@ -213,7 +213,7 @@ def Append2Simg(sparse_image_path, unsparse_image_path, error_message):
def Append(target, file_to_append, error_message):
  cmd = 'cat %s >> %s' % (file_to_append, target)
  print cmd
  status, output = commands.getstatusoutput(cmd)
  status, output = getstatusoutput(cmd)
  if status:
    print "%s: %s" % (error_message, output)
    return False