Commit 87dad410 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix a specific use case for the CQ.

Ensure the gcl change directory is created when gcl was never used by itself but
used through trychange.py

R=nsylvain@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/11193040

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@162769 0039d316-1c4b-4281-b951-d872f2087c98
parent 04d119d5
......@@ -123,6 +123,9 @@ def GetCachedFile(filename, max_age=60*60*24*3, use_root=False):
Note: The cache will be inconsistent if the same file is retrieved with both
use_root=True and use_root=False. Don't be stupid.
"""
if not os.path.isdir(GetCacheDir()):
os.makedirs(GetCacheDir())
if filename not in FILES_CACHE:
# Don't try to look up twice.
FILES_CACHE[filename] = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment