[gnome-builder] autotools: set the IdeBuildResult:failed property



commit d4c0ca1e52adfdaad11d2bb6e8dfd9217b5b594f
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 26 17:30:45 2016 -0700

    autotools: set the IdeBuildResult:failed property
    
    If we know we failed (and therefore are propagating an error back, then
    set the simplified IdeBuildResult:failed property to TRUE.

 plugins/autotools/ide-autotools-build-task.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-build-task.c b/plugins/autotools/ide-autotools-build-task.c
index 864aaec..062700b 100644
--- a/plugins/autotools/ide-autotools-build-task.c
+++ b/plugins/autotools/ide-autotools-build-task.c
@@ -581,6 +581,7 @@ ide_autotools_build_task_execute_finish (IdeAutotoolsBuildTask  *self,
   GTask *task = (GTask *)result;
   WorkerState *state;
   guint sequence;
+  gboolean ret;
 
   g_return_val_if_fail (IDE_IS_AUTOTOOLS_BUILD_TASK (self), FALSE);
   g_return_val_if_fail (G_IS_TASK (task), FALSE);
@@ -591,7 +592,13 @@ ide_autotools_build_task_execute_finish (IdeAutotoolsBuildTask  *self,
   if ((state != NULL) &&  (state->sequence == sequence))
     ide_configuration_set_dirty (self->configuration, FALSE);
 
-  return g_task_propagate_boolean (task, error);
+  ret = g_task_propagate_boolean (task, error);
+
+  /* Mark the task as failed */
+  if (ret == FALSE)
+    ide_build_result_set_failed (IDE_BUILD_RESULT (self), TRUE);
+
+  return ret;
 }
 
 static gboolean


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