changeset 462:48deb57f52d1

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:20:53 -0700
parents fba923298346
children 66c2a17d8424
files python/setup_repo.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 18:16:28 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:20:53 2013 -0700
@@ -31,7 +31,12 @@
     if isinstance(command, string):
         command_str = command
     else:
-        command_str = ' '.join(command)
+        if len(command) == 1:
+            command_str = command[0]
+        else:
+            command_str = '%s %s' % (command[0],
+                                     ' '.join(["'%s'" % i
+                                               for i in command[1:])))
     print 'Running:\n%s' % (command_str)
     if globals()['dry_run']:
         return