diff options
author | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-15 15:54:12 +0000 |
---|---|---|
committer | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-15 15:54:12 +0000 |
commit | b047350614d90899da93737b4dd16776c47a47a5 (patch) | |
tree | a95322618aa4933227fd7950634d26ea40a6b1eb /tools/update_reference_build.py | |
parent | 8d14d85eca005b0dd56c10793462769b6f6253d7 (diff) | |
download | chromium_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-x | tools/update_reference_build.py | 2 |
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: |