[gnome-builder] autotools: Use the new build function for installs too



commit b58f6879f083f5d49f70cd74d00321ef77a2de34
Author: Matthew Leeds <mleeds redhat com>
Date:   Thu Oct 13 16:56:37 2016 -0500

    autotools: Use the new build function for installs too
    
    This commit fixes a bug introduced by 1c00cdd where
    ide_autotools_build_task_execute_async() was called for installs,
    but ide_autotools_build_task_execute_with_postbuild_finish() was called
    in the callback. The mismatch caused the IdeBuildResult to stay in
    "running" mode after the build finished which is reflected in the
    interface as a Cancel button.

 plugins/autotools/ide-autotools-builder.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/autotools/ide-autotools-builder.c b/plugins/autotools/ide-autotools-builder.c
index 6f20d06..2d95191 100644
--- a/plugins/autotools/ide-autotools-builder.c
+++ b/plugins/autotools/ide-autotools-builder.c
@@ -246,11 +246,11 @@ ide_autotools_builder_install_async (IdeBuilder           *builder,
   if (result != NULL)
     *result = g_object_ref (build_result);
 
-  ide_autotools_build_task_execute_async (build_result,
-                                          IDE_BUILDER_BUILD_FLAGS_NONE,
-                                          cancellable,
-                                          ide_autotools_builder_install_cb,
-                                          g_object_ref (task));
+  ide_autotools_build_task_execute_with_postbuild (build_result,
+                                                   IDE_BUILDER_BUILD_FLAGS_NONE,
+                                                   cancellable,
+                                                   ide_autotools_builder_install_cb,
+                                                   g_object_ref (task));
 }
 
 static IdeBuildResult *


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