mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 23:51:07 +02:00
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
This commit is contained in:
parent
efbce1e261
commit
f58bc389d9
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user