[gnome-ostree] task: Only run TaskAfter if the task succeeds
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] task: Only run TaskAfter if the task succeeds
- Date: Tue, 26 Feb 2013 21:11:10 +0000 (UTC)
commit baf6ff88f617068e65d5d10987b833adf8426add
Author: Colin Walters <walters verbum org>
Date: Tue Feb 26 14:23:53 2013 -0500
task: Only run TaskAfter if the task succeeds
Oops =)
src/js/task.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/task.js b/src/js/task.js
index d16516c..ea06fae 100644
--- a/src/js/task.js
+++ b/src/js/task.js
@@ -198,7 +198,7 @@ const TaskMaster = new Lang.Class({
throw new Error("TaskMaster: Internal error - Failed to find completed task:" + task.TaskName);
this._executing.splice(idx, 1);
this.emit('task-complete', task, success, error);
- if (this._processAfter) {
+ if (success && this._processAfter) {
let changed = true;
let version = task.queryVersion();
if (version !== null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]