[gobject-introspection] Correctly quote printed shell commands
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Correctly quote printed shell commands
- Date: Fri, 9 Jul 2010 14:18:18 +0000 (UTC)
commit 502aaf71f4612f88391f34a8bb12772acce85f55
Author: Johan Dahlin <johan gnome org>
Date: Fri Jul 9 11:17:29 2010 -0300
Correctly quote printed shell commands
giscanner/dumper.py | 6 ++++--
1 files 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]