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

Unified Diff: bin/cbuildbot.py

Issue 5930002: Fixed build failure w/ new sudo (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index 519ecc83db32aa0faa7c18ae5074c4a86f2d02b2..de395947c27114dc5dcdcd986dddcfcaeeb387f0 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -413,9 +413,10 @@ def _SetupBoard(buildroot, board='x86-generic'):
def _Build(buildroot, emptytree):
"""Wrapper around build_packages."""
cwd = os.path.join(buildroot, 'src', 'scripts')
- cmd = ['./build_packages']
if emptytree:
- cmd.insert(0, 'EXTRA_BOARD_FLAGS=--emptytree')
+ cmd = ['sh', '-c', 'EXTRA_BOARD_FLAGS=--emptytree ./build_packages']
+ else:
+ cmd = ['./build_packages']
RunCommand(cmd, cwd=cwd, enter_chroot=True)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698