Use the correct size key

At this point, userdata_size has been converted to partition_size in
build_image.ImagePropFromGlobalDict().

Change-Id: Ida6be1905ca3109c2660274a16359a9f3fbcd94d
This commit is contained in:
Ying Wang 2012-11-27 11:29:11 -08:00
parent 3767d7ade8
commit a7c8f72b40
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def AddUserdata(output_zip):
image_props = build_image.ImagePropFromGlobalDict(OPTIONS.info_dict,
"data")
# If no userdata_size is provided, skip userdata.img.
if not image_props.get("userdata_size"):
if not image_props.get("partition_size"):
return
print "creating userdata.img..."