summaryrefslogtreecommitdiffstats
path: root/tools/update_reference_build.py
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 15:54:12 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-15 15:54:12 +0000
commitb047350614d90899da93737b4dd16776c47a47a5 (patch)
treea95322618aa4933227fd7950634d26ea40a6b1eb /tools/update_reference_build.py
parent8d14d85eca005b0dd56c10793462769b6f6253d7 (diff)
downloadchromium_src-b047350614d90899da93737b4dd16776c47a47a5.zip
chromium_src-b047350614d90899da93737b4dd16776c47a47a5.tar.gz
chromium_src-b047350614d90899da93737b4dd16776c47a47a5.tar.bz2
Properly create new directories in the update_reference_builds script.
BUG= The trybots are out to lunch :( NOTRY=True Review URL: https://codereview.chromium.org/23902016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235330 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/update_reference_build.py')
-rwxr-xr-xtools/update_reference_build.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/update_reference_build.py b/tools/update_reference_build.py
index d77a099..112599b 100755
--- a/tools/update_reference_build.py
+++ b/tools/update_reference_build.py
@@ -232,6 +232,8 @@ class BuildUpdater(object):
# If dest is just a dir listing, do nothing.
if not os.path.basename(dest):
continue
+ if not os.path.isdir(os.path.dirname(dest)):
+ os.makedirs(os.path.dirname(dest))
with z.open(content) as unzipped_content:
logging.info('Extracting %s to %s (%s)', content, dest, dl_file)
with file(dest, 'wb') as dest_file: