[tbb-commits] [tor-browser-build/maint-7.5] Bug 26461: fix error when {alpha, release}/signed doesn't exist
gk at torproject.org
gk at torproject.org
Sat Jun 23 06:45:09 UTC 2018
commit b4ceb77a9a481f3770129959e899f5866f049c7a
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 1df35b3..f776521 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;
@@ -546,7 +547,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