diff options
author | Johan Dahlin <johan@gnome.org> | 2010-07-09 11:17:29 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-07-09 11:18:09 -0300 |
commit | 502aaf71f4612f88391f34a8bb12772acce85f55 (patch) | |
tree | 588b62fa061db4cf221c84509eb5d5d0043a0667 | |
parent | 0a22a0b3190df11944bc4b4848c8b4b1463eb7de (diff) | |
download | gobject-introspection-502aaf71f4612f88391f34a8bb12772acce85f55.tar.gz |
Correctly quote printed shell commands
-rw-r--r-- | giscanner/dumper.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py index 505465e8..3b942a94 100644 --- a/giscanner/dumper.py +++ b/giscanner/dumper.py @@ -173,7 +173,8 @@ class DumpCompiler(object): "Could not find c source file: %s" % (source, )) args.extend(list(sources)) if not self._options.quiet: - print "g-ir-scanner: compile: %r" % (' '.join(args), ) + print "g-ir-scanner: compile: %s" % ( + subprocess.list2cmdline(args),) subprocess.check_call(args) def _link(self, output, *sources): @@ -231,7 +232,8 @@ class DumpCompiler(object): args.extend(list(sources)) if not self._options.quiet: - print "g-ir-scanner: link: %r" % (' '.join(args), ) + print "g-ir-scanner: link: %s" % ( + subprocess.list2cmdline(args),) subprocess.check_call(args) |