From 712e93bc9497a4618847859b6f4065f26b7428e7 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 6 Sep 2016 21:59:20 +0200
Subject: [PATCH] should still marktasks after a rebuild.

---
 src/engine.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/engine.c b/src/engine.c
index d322902488..e588fdbfa1 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -2203,6 +2203,10 @@ void engine_rebuild(struct engine *e) {
 
   /* Re-build the tasks. */
   engine_maketasks(e);
+  
+  /* Run through the tasks and mark as skip or not. */
+  if (engine_marktasks(e))
+     error("engine_marktasks failed after space_rebuild.");
 
   /* Print the status of the system */
   if (e->verbose) engine_print_task_counts(e);
-- 
GitLab