[gnome-ostree] procutil: Use shell syntax for logging commands



commit 62fdb49a55ff3524f9211bb467e83b7961ff2570
Author: Colin Walters <walters verbum org>
Date:   Tue Apr 30 20:32:21 2013 -0400

    procutil: Use shell syntax for logging commands
    
    So they're easier to rerun.

 src/js/procutil.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/procutil.js b/src/js/procutil.js
index 12a7519..82db9af 100644
--- a/src/js/procutil.js
+++ b/src/js/procutil.js
@@ -68,7 +68,7 @@ function runSync(argv, cancellable, params) {
     let proc = new GSystem.Subprocess({context: context});
     proc.init(cancellable);
     if (pparams.logInitiation)
-       print(Format.vprintf("Started child process %s: pid=%s", [JSON.stringify(proc.context.argv), 
proc.get_pid()]));
+       print(Format.vprintf("Started child process %s: pid=%s", 
[proc.context.argv.map(GLib.shell_quote).join(' '), proc.get_pid()]));
     _wait_sync_check_internal(proc, cancellable);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]