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

Unified Diff: bin/cbuildbot.py

Issue 6050004: Create package keywords directory if it doesn't exist. (Closed) Base URL: http://git.chromium.org/git/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 90e965bb4f496c18aa4dd3f1d3cddec851bfe62a..08a0dcf065353f8ed835a3f085b7cddd187e0e8b 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -232,10 +232,12 @@ def _MarkChromeAsStable(buildroot, tracking_branch, chrome_rev, board):
return None
else:
chrome_atom = portage_atom_string.split('=')[1]
+ keywords_file = CHROME_KEYWORDS_FILE % {'board': board}
# TODO(sosa): Workaround to build unstable chrome ebuild we uprevved.
- RunCommand(['sudo', 'tee', CHROME_KEYWORDS_FILE % {'board': board}],
- input='=%s\n' % chrome_atom, enter_chroot=True,
- cwd=cwd)
+ RunCommand(['sudo', 'mkdir', '-p', os.path.dirname(keywords_file)],
+ enter_chroot=True, cwd=cwd)
+ RunCommand(['sudo', 'tee', keywords_file], input='=%s\n' % chrome_atom,
+ enter_chroot=True, cwd=cwd)
return chrome_atom
« 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