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.
This commit is contained in:
Eelco Dolstra 2016-10-21 20:10:53 +02:00
parent 038c8ee8d4
commit 6391c4dcec

View file

@ -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";