[gnome-builder] pipeline: allow late-stages



commit 2f21fcc400196e827a97fd5958c1c5625627a5c7
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 1 01:11:04 2017 -0800

    pipeline: allow late-stages
    
    This can end up happening when plugins are enabled/disabled, so we need
    to support it. It just means that the user might have to perform a
    rebuild if we have something in flight.

 libide/buildsystem/ide-build-pipeline.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-pipeline.c b/libide/buildsystem/ide-build-pipeline.c
index 5d74d54..4fadda2 100644
--- a/libide/buildsystem/ide-build-pipeline.c
+++ b/libide/buildsystem/ide-build-pipeline.c
@@ -1521,12 +1521,6 @@ ide_build_pipeline_connect (IdeBuildPipeline *self,
                         (phase & IDE_BUILD_PHASE_WHENCE_MASK) == IDE_BUILD_PHASE_BEFORE ||
                         (phase & IDE_BUILD_PHASE_WHENCE_MASK) == IDE_BUILD_PHASE_AFTER, 0);
 
-  if G_UNLIKELY (self->position != -1)
-    {
-      g_warning ("Cannot insert stage into pipeline after execution, ignoring");
-      IDE_RETURN (0);
-    }
-
   klass = g_type_class_ref (IDE_TYPE_BUILD_PHASE);
 
   for (guint i = 0; i < klass->n_values; i++)


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