diff options
author | Ying Wang <wangying@google.com> | 2014-04-15 11:36:46 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-04-15 12:37:13 -0700 |
commit | 5a7ad0338bf027e6398bff411c826b24f4faf358 (patch) | |
tree | 2f0b949659834baf784bb4206856f4608706ca9e /tools/post_process_props.py | |
parent | f0534c289786d6a6c98cc5550f5027e13a5a8bff (diff) | |
download | build-5a7ad0338bf027e6398bff411c826b24f4faf358.zip build-5a7ad0338bf027e6398bff411c826b24f4faf358.tar.gz build-5a7ad0338bf027e6398bff411c826b24f4faf358.tar.bz2 |
Accomodate to the import syntax in build.prop.
Bug: 14024566
Change-Id: I70b8d3c8cfc968a7f039728375f3f7f341cdc11a
Diffstat (limited to 'tools/post_process_props.py')
-rwxr-xr-x | tools/post_process_props.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/post_process_props.py b/tools/post_process_props.py index a971683..e43ca59 100755 --- a/tools/post_process_props.py +++ b/tools/post_process_props.py @@ -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): |