[tbb-commits] [tor-browser-build/master] Bug 26461: fix error when {alpha, release}/signed doesn't exist

gk at torproject.org gk at torproject.org
Sat Jun 23 06:46:34 UTC 2018


commit 45f1b0a0c0e6e4ebe5dc330b2c1ac052838b060f
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri Jun 22 17:34:23 2018 +0200

    Bug 26461: fix error when {alpha,release}/signed doesn't exist
    
    Use make_path instead of mkdir to create all needed parent directories.
---
 tools/update-responses/update_responses | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 77b9c96..3295808 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -6,6 +6,7 @@ use English;
 use FindBin;
 use YAML qw(LoadFile);
 use File::Slurp;
+use File::Path qw(make_path);
 use Digest::SHA qw(sha256_hex);
 use XML::Writer;
 use Cwd;
@@ -547,7 +548,7 @@ sub download_version {
             "$tmpdir/sha256sums-signed-build.txt")) {
         exit_error "Error checking gpg signature for version $version";
     }
-    mkdir $destdir;
+    make_path $destdir;
     move "$tmpdir/sha256sums-signed-build.txt.asc", "$destdir/sha256sums-signed-build.txt.asc";
     move "$tmpdir/sha256sums-signed-build.txt", "$destdir/sha256sums-signed-build.txt";
     my %sums = map { chomp; reverse split '  ', $_ }





More information about the tbb-commits mailing list