aboutsummaryrefslogtreecommitdiff
path: root/DEPS
diff options
context:
space:
mode:
authorkjellander@webrtc.org <kjellander@webrtc.org>2014-10-10 07:16:05 +0000
committerkjellander@webrtc.org <kjellander@webrtc.org>2014-10-10 07:16:05 +0000
commitc5593ef1aa332e222a87e634e87fac9487981a4f (patch)
treeb10da8dd3fc0d6858d54e00fbcef0459cddba0e4 /DEPS
parentc732a3e5113bd64c85eeefa7a2ed3a5076e3db87 (diff)
downloadwebrtc-c5593ef1aa332e222a87e634e87fac9487981a4f.tar.gz
Workaround deps2git issue with inline Python in DEPS.
When running https://code.google.com/p/chromium/codesearch#chromium/tools/deps2git/deps2git.py on our DEPS file, an error is caused by the formatting pretty printing of the converted DEPS -> .DEPS.git output. Since this needs to work in order to switch our bots to bot_update (uses Git) and the fact that changing deps2git.py is high risk, it's better to work around this problem by altering the Python inline code. The fact that deps2git will go away when the remaining projects have switched to Git also motivates not taking the risk of changing deps2git for this case only. BUG=3534 TESTED=Ran gclient runhooks and verified the script executed when there was a trunk/check_root_dir.py file. R=phoglund@chromium.org, phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/22999004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7417 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'DEPS')
-rw-r--r--DEPS6
1 files changed, 3 insertions, 3 deletions
diff --git a/DEPS b/DEPS
index 4ee858c815..97221add58 100644
--- a/DEPS
+++ b/DEPS
@@ -56,9 +56,9 @@ hooks = [
"name": "check_root_dir_name",
"pattern": ".",
"action": ["python","-c",
- ("import os, sys;"
- "script = os.path.join('trunk', 'check_root_dir.py');"
- "_ = os.system('%s %s' % (sys.executable, script)) "
+ ("import os,sys;"
+ "script = os.path.join('trunk','check_root_dir.py');"
+ "_ = os.system('%s %s' % (sys.executable,script)) "
"if os.path.exists(script) else 0")],
},
{