From f58bc389d9c42d1584bf6ac5a5819dbfa777942c Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Mon, 10 Jan 2011 10:58:58 -0800 Subject: [PATCH] Create package keywords directory if it doesn't exist. Clobbering the builder uncovered a bug that was lurking. Change-Id: Ieb487d2112a7048438943aa96fba23e9c8412a13 BUG=chromium-os:8693 TEST=Running now Review URL: http://codereview.chromium.org/6050004 --- bin/cbuildbot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py index bb9e0cc23d..168d6212df 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