From 502aaf71f4612f88391f34a8bb12772acce85f55 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 9 Jul 2010 11:17:29 -0300 Subject: [PATCH] Correctly quote printed shell commands --- giscanner/dumper.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/giscanner/dumper.py b/giscanner/dumper.py index 505465e..3b942a9 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) -- 2.7.4