]> git.tdb.fi Git - builder.git/commitdiff
Restore --dry-run functionality
authorMikko Rasa <tdb@tdb.fi>
Thu, 10 May 2012 21:20:07 +0000 (00:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:51 +0000 (00:08 +0300)
source/builder.cpp

index 9dfa2e693fdeb8ff27afcb0cd7383f381b3da1ec..21e5484b32cda923bcfb0719f5dfd9aee6c7703c 100644 (file)
@@ -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)