From 0893b43140efc79edd40b079498e533d704eab62 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Tue, 10 Mar 2020 12:51:19 +0100 Subject: [PATCH] channelsDir -> channelName --- mirror-nixos-branch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index 1ae73b3..74b4df1 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -225,8 +225,8 @@ 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" => $target }); -$bucketChannels->add_key("$channelsDir/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => "$target/nixexprs.tar.xz" }); +$bucketChannels->add_key($channelName, $target, { "x-amz-website-redirect-location" => $target }); +$bucketChannels->add_key("$channelName/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => "$target/nixexprs.tar.xz" }); # for nixos channels also create redirects for latest images if ($channelName =~ /nixos/) {