From 6391c4dcecb50032c1cb45d672134809fab0415e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 21 Oct 2016 20:10:53 +0200 Subject: [PATCH] Fix check for release existance We no longer have a github-link file, so this check always failed. As a result, we were constantly re-uploading releases. --- 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 000115b..25125b8 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -84,7 +84,7 @@ if (defined $curReleaseDir) { system("git remote update origin >&2") == 0 or die; system("git push channels $rev:refs/heads/$channelName >&2") == 0 or die; -if ($bucket->head_key("$releasePrefix/github-link")) { +if ($bucket->head_key("$releasePrefix")) { print STDERR "release already exists\n"; } else { my $tmpDir = "/data/releases/tmp/release-$channelName/$releaseName";