Index: build/android/gyp/util/build_utils.py |
diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py |
index fa8592bd03e92d3043c03334eedb892da95dccc1..1e38cfc3df44e869780ed1979f70580d7b48c426 100644 |
--- a/build/android/gyp/util/build_utils.py |
+++ b/build/android/gyp/util/build_utils.py |
@@ -41,7 +41,10 @@ def DeleteDirectory(dir_path): |
shutil.rmtree(dir_path) |
-def Touch(path): |
+def Touch(path, fail_if_missing=False): |
+ if fail_if_missing and not os.path.exists(path): |
+ raise Exception(path + ' doesn\'t exist.') |
+ |
MakeDirectory(os.path.dirname(path)) |
with open(path, 'a'): |
os.utime(path, None) |