[gnome-ostree] build: Log commands



commit f3a64be61b845da2b2bdd4eae6afe7613a7bc4b8
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 31 11:45:21 2013 -0500

    build: Log commands
    
    So we can debug/reproduce things more easily

 src/ostbuild/js/builtins/build.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/build.js b/src/ostbuild/js/builtins/build.js
index d86d1ad..7c54a8a 100644
--- a/src/ostbuild/js/builtins/build.js
+++ b/src/ostbuild/js/builtins/build.js
@@ -383,7 +383,7 @@ const Build = new Lang.Class({
             childArgs.push('--patches-path=' + this.args.patches_path);
         else if (patchdir)
             childArgs.push('--patches-path=' + patchdir.get_path());
-        ProcUtil.runSync(childArgs, cancellable);
+        ProcUtil.runSync(childArgs, cancellable, { logInitiation: true });
 
         GSystem.file_unlink(tempMetadataPath, cancellable);
 
@@ -431,6 +431,7 @@ const Build = new Lang.Class({
 	let t;
 	try {
 	    t = buildTaskset.start(context, cancellable, Lang.bind(this, this._onBuildComplete, loop));
+	    print("Started child process " + context.argv.map(GLib.shell_quote).join(' '));
 	    loop.run();
 	} finally {
 	    mainContext.pop_thread_default();
@@ -622,7 +623,8 @@ const Build = new Lang.Class({
 	Lang.copyProperties(BuildUtil.BUILD_ENV, env);
         env['DL_DIR'] = downloads.get_path();
         env['SSTATE_DIR'] = sstateDir.get_path();
-        ProcUtil.runSync(cmd, cancellable, {env:ProcUtil.objectToEnvironment(env)});
+        ProcUtil.runSync(cmd, cancellable, { logInitiation: true,
+					     env:ProcUtil.objectToEnvironment(env) });
 
 	let componentTypes = ['runtime', 'devel'];
         for (let i = 0; i < componentTypes.length; i++) {



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