changeset 459:32667483d1c5

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:11:44 -0700
parents 483b4237d9a2
children 3cd5996c1329
files python/setup_repo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 18:10:16 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:11:44 2013 -0700
@@ -33,6 +33,8 @@
     else:
         command_str = ' '.join(command)
     print 'Running:\n%s' % (command_str)
+    if globals()['dry_run']:
+        return
     return subprocess.check_output(*args, **kwargs)
 
 def init_repo(directory):