From 7d46561471be8d908cf666ea74b95e70cd972d47 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 25 Mar 2020 14:20:05 -0400 Subject: [PATCH] mirror: Add redirects for json data files --- mirror-nixos-branch.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index d2e1140..4f24c5a 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -317,10 +317,15 @@ sub redirect { redirect($channelName, $releasePrefix); redirect("$channelName/nixexprs.tar.xz", "$releasePrefix/nixexprs.tar.xz"); 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. 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 $artifact ("nixos-graphical", "nixos-plasma5",