Chromium Code Reviews| Index: prebuilt.py |
| diff --git a/prebuilt.py b/prebuilt.py |
| index df7f6e36dc5335dc845bbe669e1503a5ee309e44..a029159ed42d849dda1647a30d3873cf11d337b3 100755 |
| --- a/prebuilt.py |
| +++ b/prebuilt.py |
| @@ -92,8 +92,8 @@ def UpdateLocalFile(filename, value, key='PORTAGE_BINHOST'): |
| # Strip newlines from end of line. We already add newlines below. |
| line = line.rstrip("\n") |
| - if '=' not in line: |
| - # Skip any line without an equal in it and just write it out. |
| + if len(line.split('=')) != 2: |
| + # Skip any line that doesn't fit key=val. |
| file_lines.append(line) |
| continue |