Make one-click installs work for binary cache stores

This requires setting binary_cache_public_uri in hydra.conf.
This commit is contained in:
Eelco Dolstra
2017-10-18 14:09:28 +02:00
parent 44ef743d84
commit 62c6cca937
3 changed files with 8 additions and 10 deletions

View File

@ -11,9 +11,7 @@ sub process {
my $build = $c->stash->{build};
requireLocalStore($c);
my $channelUri = $c->uri_for('/');
my $channelUri = $c->config->{binary_cache_public_uri} // $c->uri_for('/');
# FIXME: add multiple output support
my $s = "NIXPKG1 http://invalid.org/"