Accomodate to the import syntax in build.prop.

Bug: 14024566
Change-Id: I70b8d3c8cfc968a7f039728375f3f7f341cdc11a
This commit is contained in:
Ying Wang 2014-04-15 11:36:46 -07:00
parent f0534c2897
commit 5a7ad0338b
1 changed files with 3 additions and 2 deletions

View File

@ -85,8 +85,9 @@ class PropFile:
for line in self.lines:
if not line or line.startswith("#"):
continue
key, value = line.split("=", 1)
props[key] = value
if "=" in line:
key, value = line.split("=", 1)
props[key] = value
return props
def get(self, name):