Accomodate to the import syntax in build.prop.

Bug: 14024566
Change-Id: I71692244fabcd4d12f65849ffa027295b3a2a79a
(cherry picked from commit 092fea0d3e644573d7f0dbfe6692f42431f83c5c)
This commit is contained in:
Ying Wang
2014-04-15 11:24:00 -07:00
parent 5a7ad0338b
commit 114b46f15d

View File

@@ -179,8 +179,9 @@ def LoadBuildProp(read_helper):
for line in data.split("\n"):
line = line.strip()
if not line or line.startswith("#"): continue
name, value = line.split("=", 1)
d[name] = value
if "=" in line:
name, value = line.split("=", 1)
d[name] = value
return d
def LoadRecoveryFSTab(read_helper, fstab_version):