mirror-nixos-branch: remove special handling for old releases

This commit is contained in:
Markus Wamser 2022-02-04 07:51:50 +01:00
parent af3570760b
commit 648eb867a0

View file

@ -226,16 +226,8 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
# All of these paths are x86-specific only and are not in small channels # All of these paths are x86-specific only and are not in small channels
if ($arch eq "x86_64-linux" and $channelName !~ /-small/) { if ($arch eq "x86_64-linux" and $channelName !~ /-small/) {
# Renamed iso_graphcial to iso_plasma5 in 20.03 downloadFile("nixos.iso_plasma5.$arch");
if ($releaseName !~ /-19./) { downloadFile("nixos.iso_gnome.$arch");
downloadFile("nixos.iso_plasma5.$arch");
} else {
downloadFile("nixos.iso_graphical.$arch");
}
if ($releaseName !~ /-19./ && $releaseName !~ /-20.03/) {
downloadFile("nixos.iso_gnome.$arch");
}
downloadFile("nixos.iso_minimal.i686-linux"); downloadFile("nixos.iso_minimal.i686-linux");
downloadFile("nixos.ova.$arch"); downloadFile("nixos.ova.$arch");
@ -293,7 +285,7 @@ if ($bucketReleases && $bucketReleases->head_key("$releasePrefix")) {
# Text files # Text files
$configuration->{content_type} = "text/plain"; $configuration->{content_type} = "text/plain";
} elsif ($fn =~ /.json.br$/) { } elsif ($fn =~ /.json.br$/) {
# JSON encoded as brotly # JSON encoded as brotli
$configuration->{content_type} = "application/json"; $configuration->{content_type} = "application/json";
$configuration->{content_encoding} = "br"; $configuration->{content_encoding} = "br";
} }