some builds don't have a build.prop?

Change-Id: I31ab106a1934ff4bb7076c184f4d7581336e16da
This commit is contained in:
Doug Zongker
2013-12-06 11:53:27 -08:00
parent df12406ad8
commit 1ad7adeaa7

View File

@@ -280,7 +280,11 @@ def ImagePropFromGlobalDict(glob_dict, mount_point):
glob_dict: the global dictionary from the build system.
mount_point: such as "system", "data" etc.
"""
d = {"timestamp": glob_dict["build.prop"].get("ro.build.date.utc", -1)}
d = {}
if "build.prop" in glob_dict:
bp = glob_dict["build.prop"]
if "ro.build.date.utc" in bp:
d["timestamp"] = bp["ro.build.date.utc"]
def copy_prop(src_p, dest_p):
if src_p in glob_dict: