From: Mikko Rasa Date: Thu, 10 May 2012 21:20:07 +0000 (+0300) Subject: Restore --dry-run functionality X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=afeefaaf6b7d9d9314162dc5d0e77bfeb770894b;p=builder.git Restore --dry-run functionality --- 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)