Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: prebuilt.py

Issue 4566001: Fix for bug 8764 that breaks prebuilts for files with more than just keyword pairs. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Remove unnecessary check of = in string Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | prebuilt_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | prebuilt_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698