Skip to content
Snippets Groups Projects
Commit b4ceb77a authored by boklm's avatar boklm Committed by Georg Koppen
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 4377771e
No related branches found
No related tags found
No related merge requests found
......@@ -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 ' ', $_ }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment