Skip to content

Commit

Permalink
build_image: Unbreak verity/FEC generation
Browse files Browse the repository at this point in the history
Change-Id: Icbd36b11659ced7764599c5d2e0e91be67a3e4bc
  • Loading branch information
rmcc authored and semdoc committed Sep 8, 2016
1 parent 4dda427 commit a21c66e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/releasetools/build_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,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
Expand Down Expand Up @@ -150,7 +150,7 @@ def AdjustPartitionSizeForVerity(partition_size, fec_supported):
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
Expand Down Expand Up @@ -220,7 +220,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
Expand Down

0 comments on commit a21c66e

Please sign in to comment.