Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1746)

Unified Diff: gclient.py

Issue 8094008: Skip non existing directory in gclient recurse (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: missing Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index 49873003db9f561512f08b6f71c8ec22d8acef13..a53626ba6d3384c729a08790645ee1c4acd13054 100644
--- a/gclient.py
+++ b/gclient.py
@@ -1095,7 +1095,10 @@ def CMDrecurse(parser, args):
env['GCLIENT_SCM'] = scm
if url:
env['GCLIENT_URL'] = url
- subprocess2.call(args, cwd=cwd, env=env)
+ if os.path.isdir(cwd):
+ subprocess2.call(args, cwd=cwd, env=env)
+ else:
+ print >> sys.stderr, 'Skipped missing %s' % cwd
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698