From afeefaaf6b7d9d9314162dc5d0e77bfeb770894b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 11 May 2012 00:20:07 +0300 Subject: [PATCH] Restore --dry-run functionality --- source/builder.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/builder.cpp b/source/builder.cpp index 9dfa2e6..21e5484 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -585,8 +585,16 @@ int Builder::do_build() Task *task = tgt->build(); if(task) { - task->start(); - tasks.push_back(task); + if(dry_run) + { + task->signal_finished.emit(true); + delete task; + } + else + { + task->start(); + tasks.push_back(task); + } } if(show_progress) -- 2.45.2