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

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: 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..dc5c5391678cbdaeb39442dd53d7c07cf46be0c5 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 non existing %s' % cwd
Dirk Pranke 2011/09/30 19:42:01 Nit: "nonexistent". Or "missing".
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