[gnome-builder] buildmanager: take can-build into account before invalidating pipeline



commit cd9da1e3b0f51fb92e731f5d1f927ec378e70a58
Author: Christian Hergert <chergert redhat com>
Date:   Thu Apr 6 17:26:08 2017 -0700

    buildmanager: take can-build into account before invalidating pipeline
    
    This gives us a more accurate error instead of silently succeeding at
    install before the pipeline is setup.

 libide/buildsystem/ide-build-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-manager.c b/libide/buildsystem/ide-build-manager.c
index 7c2472e..b8c25b7 100644
--- a/libide/buildsystem/ide-build-manager.c
+++ b/libide/buildsystem/ide-build-manager.c
@@ -1057,7 +1057,7 @@ ide_build_manager_execute_async (IdeBuildManager     *self,
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, ide_build_manager_execute_async);
 
-  if (self->pipeline == NULL)
+  if (self->pipeline == NULL || self->can_build == FALSE)
     {
       g_task_return_new_error (task,
                                G_IO_ERROR,


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