[gnome-ostree] autobuilder: Put snapshot copy in taskdir



commit a250a6d4b8e1612671131d7668b29d56f8a3e2a4
Author: Colin Walters <walters verbum org>
Date:   Mon Jan 14 17:50:41 2013 -0500

    autobuilder: Put snapshot copy in taskdir
    
    This is just cleaner, since it's transient to that task, and will
    get clened up.  Better, we retain the version number/checksum.

 src/ostbuild/js/builtins/autobuilder.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/autobuilder.js b/src/ostbuild/js/builtins/autobuilder.js
index 0e1a88f..f178c71 100644
--- a/src/ostbuild/js/builtins/autobuilder.js
+++ b/src/ostbuild/js/builtins/autobuilder.js
@@ -201,7 +201,7 @@ const AutoBuilder = new Lang.Class({
 
 	let task = this._build_taskset.start();
 	let workdir = task.path;
-	let transientSnapshotPath = this.workdir.get_child(this.prefix + '-src-snapshot.json');
+	let transientSnapshotPath = workdir.get_child(this._source_snapshot_path.get_basename());
 	GSystem.file_linkcopy(this._source_snapshot_path, transientSnapshotPath, Gio.FileCopyFlags.OVERWRITE, null);
 	let args = ['ostbuild', 'build', '--snapshot=' + transientSnapshotPath.get_path()];
 	args.push.apply(args, this._queued_force_builds);



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