changeset 456:7f1dfb36a0fe

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:01:26 -0700
parents 81a237bcf3b6
children cdad4c445993
files python/setup_repo.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 17:57:48 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:01:26 2013 -0700
@@ -20,7 +20,15 @@
 
 from optparse import OptionParser
 
+string = (basestring,)
+
 def call(command, *args, **kwargs):
+
+    if isinstance(command, string):
+        command_str = command
+    else:
+        command_str = ' '.join(command)
+    print 'Running:\n%s' % (command_str)
     return subprocess.check_output(*args, **kwargs)
 
 def init_repo(directory):