[gnome-ostree/wip/simple-cleanups: 17/19] task: Write out the path to the build in the meta.json
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree/wip/simple-cleanups: 17/19] task: Write out the path to the build in the meta.json
- Date: Thu, 13 Jun 2013 18:40:05 +0000 (UTC)
commit 734761046cf0812d362d438ebd5ffdc433ccb995
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jun 13 14:32:13 2013 -0400
task: Write out the path to the build in the meta.json
So that clients don't have to reverse engineer it.
src/js/task.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/js/task.js b/src/js/task.js
index da99357..06abf2f 100644
--- a/src/js/task.js
+++ b/src/js/task.js
@@ -494,11 +494,13 @@ const TaskDef = new Lang.Class({
}
let elapsedMillis = GLib.get_monotonic_time() / 1000 - this._startTimeMillis;
+ let targetPath = this.workdir.get_relative_path(this._taskCwd);
let meta = { taskMetaVersion: 0,
taskVersion: this._version,
success: success,
errmsg: errmsg,
- elapsedMillis: elapsedMillis };
+ elapsedMillis: elapsedMillis,
+ path: targetPath };
let statusTxtPath = this._taskCwd.get_child('status.txt');
if (statusTxtPath.query_exists(null)) {
let contents = GSystem.file_load_contents_utf8(statusTxtPath, cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]