mirror: Add redirects for json data files
This commit is contained in:
parent
51104d8cde
commit
7d46561471
1 changed files with 6 additions and 1 deletions
|
@ -317,10 +317,15 @@ sub redirect {
|
||||||
redirect($channelName, $releasePrefix);
|
redirect($channelName, $releasePrefix);
|
||||||
redirect("$channelName/nixexprs.tar.xz", "$releasePrefix/nixexprs.tar.xz");
|
redirect("$channelName/nixexprs.tar.xz", "$releasePrefix/nixexprs.tar.xz");
|
||||||
redirect("$channelName/git-revision", "$releasePrefix/git-revision");
|
redirect("$channelName/git-revision", "$releasePrefix/git-revision");
|
||||||
|
redirect("$channelName/packages.json.br", "$releasePrefix/packages.json.br");
|
||||||
|
|
||||||
# For nixos channels also create redirects for latest images.
|
# Create redirects relevant only to NixOS channels.
|
||||||
# FIXME: create only redirects to files that exist.
|
# FIXME: create only redirects to files that exist.
|
||||||
if ($channelName =~ /nixos/) {
|
if ($channelName =~ /nixos/) {
|
||||||
|
# Options listing
|
||||||
|
redirect("$channelName/options.json.br", "$releasePrefix/options.json.br");
|
||||||
|
|
||||||
|
# Redirects for latest images.
|
||||||
for my $arch ("x86_64-linux", "i686-linux") {
|
for my $arch ("x86_64-linux", "i686-linux") {
|
||||||
for my $artifact ("nixos-graphical",
|
for my $artifact ("nixos-graphical",
|
||||||
"nixos-plasma5",
|
"nixos-plasma5",
|
||||||
|
|
Loading…
Reference in a new issue