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 3357eba1b578a8cc2cec3685c4145653678f91b1..0b4466d440ea2283340fdeec9d63aa973e801c14 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) |