From a055dc2cdc06ff835ca819a7021310f2f503ce33 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 6 Mar 2020 10:24:35 +0100 Subject: [PATCH 1/2] fix a typo and also add redirect for $channel/nixexprs.tar.xz --- mirror-nixos-branch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index ead347d..445979c 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -225,4 +225,5 @@ system("git push origin $rev:refs/heads/$channelName >&2") == 0 or die; system("git push channels $rev:refs/heads/$channelName >&2") == 0 or die; # Update channel on channels.nixos.org -$bucketChannels->add_key($channelsDir, $target, { "x-amz-website-redirect-location header" => $target }); +$bucketChannels->add_key($channelsDir, $target, { "x-amz-website-redirect-location" => $target }); +$bucketChannels->add_key("$channelsDir/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => $target }); From 0ec4463dbd2e01d688983676b02701633059c47a Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 6 Mar 2020 10:32:44 +0100 Subject: [PATCH 2/2] fixing copy paste typo --- mirror-nixos-branch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index 445979c..e480aa6 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -226,4 +226,4 @@ system("git push channels $rev:refs/heads/$channelName >&2") == 0 or die; # Update channel on channels.nixos.org $bucketChannels->add_key($channelsDir, $target, { "x-amz-website-redirect-location" => $target }); -$bucketChannels->add_key("$channelsDir/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => $target }); +$bucketChannels->add_key("$channelsDir/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => "$target/nixexprs.tar.xz" });