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
experimental/szager/collated-output
maruel@chromium.org 13 years ago
parent 04d119d52d
commit 87dad41087

@ -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

Loading…
Cancel
Save