Unverified Commit 45f1b0a0 authored by boklm's avatar boklm
Browse files

Bug 26461: fix error when {alpha,release}/signed doesn't exist

Use make_path instead of mkdir to create all needed parent directories.
parent 0709bf67
......@@ -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 ' ', $_ }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment