deb: Fix assert syntax error

Change-Id: I8f7730c0672ed73798164c4621e1b4ac4681d00f
This commit is contained in:
Ethan Chen 2015-04-06 08:56:11 -07:00
parent 6770893cf1
commit e6ca275e52

View file

@ -224,7 +224,7 @@ def trunc_to_null(s):
def WriteImageAssert(info, file_name, file_data, partition):
checksum = common.sha1(file_data).hexdigest()
file_size = len(file_data)
info.script.AppendExtra('ifelse(sha1_check(read_file("EMMC:%s:%d:%s")) != ""),'
info.script.AppendExtra('ifelse((sha1_check(read_file("EMMC:%s:%d:%s")) != ""),'
'(ui_print("%s already up to date")),'
'package_extract_file("%s", "%s")));'
'(package_extract_file("%s", "%s")));'
% (partition, file_size, checksum, partition, file_name, partition))