mirror-nixos-branches: Fix failing aarch64 downloads

This commit is contained in:
Janne Heß 2021-11-22 01:18:18 +01:00
parent a961c8a6b9
commit fa2c4eae31
No known key found for this signature in database
GPG key ID: 69165158F05265DF

View file

@ -211,18 +211,21 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
if ($channelName =~ /nixos/) {
my $arch = "x86_64-linux";
if ($channelName =~ /-aarch64\z/) {
if ($channelName =~ /-aarch64/) {
$arch = "aarch64-linux";
}
downloadFile("nixos.channel", "nixexprs.tar.xz");
downloadFile("nixos.iso_minimal.$arch");
downloadFile("nixpkgs.tarball", "packages.json.br", "json-br");
# Only built on the main channel (x86_64-linux)
if ($arch eq "x86_64-linux") {
downloadFile("nixos.options", "options.json.br", "json-br");
}
if ($channelName !~ /-small/) {
downloadFile("nixos.iso_minimal.i686-linux") if $arch eq "x86_64-linux";
# All of these paths are x86-specific only and are not in small channels
if ($arch eq "x86_64-linux" and $channelName !~ /-small/) {
# Renamed iso_graphcial to iso_plasma5 in 20.03
if ($releaseName !~ /-19./) {
downloadFile("nixos.iso_plasma5.$arch");
@ -234,6 +237,7 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
downloadFile("nixos.iso_gnome.$arch");
}
downloadFile("nixos.iso_minimal.i686-linux");
downloadFile("nixos.ova.$arch");
}