changeset 463:66c2a17d8424

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 18:34:31 -0700
parents 48deb57f52d1
children 35f3730870e7
files python/setup_repo.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/python/setup_repo.py	Sat Aug 10 18:20:53 2013 -0700
+++ b/python/setup_repo.py	Sat Aug 10 18:34:31 2013 -0700
@@ -32,11 +32,8 @@
         command_str = command
     else:
         if len(command) == 1:
-            command_str = command[0]
-        else:
-            command_str = '%s %s' % (command[0],
-                                     ' '.join(["'%s'" % i
-                                               for i in command[1:])))
+            command_str = subprocess.list2cmdline(command)
+
     print 'Running:\n%s' % (command_str)
     if globals()['dry_run']:
         return