# HG changeset patch # User Jeff Hammel # Date 1376182886 25200 # Node ID 7f1dfb36a0feb6ac090f74c1ca7e85d035280935 # Parent 81a237bcf3b69c908362c32ed1cb5350a01f0fc1 python/setup_repo.py diff -r 81a237bcf3b6 -r 7f1dfb36a0fe python/setup_repo.py --- 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):