[tor-commits] [rbm/master] Bug 24931: fix the build_log_append option

gk at torproject.org gk at torproject.org
Fri Feb 2 07:14:25 UTC 2018


commit 476391e2c8a808acec3b6c6429dddd9f6280d783
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Jan 18 13:58:20 2018 +0100

    Bug 24931: fix the build_log_append option
    
    Fix a regression introduced by #24361.
---
 lib/RBM.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/RBM.pm b/lib/RBM.pm
index 73b7d6c..3b19ca9 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -1035,6 +1035,7 @@ sub build_run {
     if ($build_log ne '-') {
         my $append = project_config($project, "build_log_append", $options);
         $build_log = rbm_path($build_log);
+        unlink $build_log unless $append;
         make_path(dirname($build_log));
         my $now = localtime;
         path($build_log)->append_utf8("Starting build: $now\n");





More information about the tor-commits mailing list