From c5593ef1aa332e222a87e634e87fac9487981a4f Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Fri, 10 Oct 2014 07:16:05 +0000 Subject: [PATCH] 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 --- DEPS | 6 +++--- 1 file 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")], }, {