Fix indentation problem for toolchain wrapper scripts.
The indentation of the code in the toolchain wrapper scripts was
changed in CL:489563, but the code int cros_setup_toolchains was
not changed to respect the new indentation. This causes issues with
the Chrome Simple Workflow. This CL fixes that problem.
BUG=chromium:729016
TEST=In Progress
Change-Id: I7ff956db47dd6b86e834f13c5c720d655f29b266
Reviewed-on: https://chromium-review.googlesource.com/522747
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Caroline Tice <cmtice@chromium.org>
Tested-by: Caroline Tice <cmtice@chromium.org>
Trybot-Ready: Caroline Tice <cmtice@chromium.org>
diff --git a/scripts/cros_setup_toolchains.py b/scripts/cros_setup_toolchains.py
index 47ec273..76b1bf8 100644
--- a/scripts/cros_setup_toolchains.py
+++ b/scripts/cros_setup_toolchains.py
@@ -1089,7 +1089,8 @@
contents = osutils.ReadFile(sysroot_wrapper).splitlines()
for num in xrange(len(contents)):
if '@CCACHE_DEFAULT@' in contents[num]:
- contents[num] = 'use_ccache = False'
+ assert 'True' in contents[num]
+ contents[num] = contents[num].replace('True', 'False')
break
# Can't update the wrapper in place since it's a hardlink to a file in /.
os.unlink(sysroot_wrapper)