From 2c7a47999411c66ab1b421946a88962f4aac3b05 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 23 Apr 2013 15:39:05 +0200 Subject: [PATCH] Minor tweak --- src/lib/Hydra/Controller/Root.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index ac927df9..6a54ad1c 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -203,14 +203,13 @@ sub nar :Local :Args(1) { sub nix_cache_info :Path('nix-cache-info') :Args(0) { my ($self, $c) = @_; $c->response->content_type('text/plain'); - $c->stash->{'plain'} = { data => + $c->stash->{plain}->{data} = #"StoreDir: $Nix::Config::storeDir\n" . # FIXME "StoreDir: /nix/store\n" . "WantMassQuery: 0\n" . # Give Hydra binary caches a very low priority (lower than the # static binary cache http://nixos.org/binary-cache). - "Priority: 100\n" - }; + "Priority: 100\n"; $c->forward('Hydra::View::Plain'); } @@ -224,12 +223,12 @@ sub narinfo :LocalRegex('^([a-z0-9]+).narinfo$') :Args(0) { if (!$path) { $c->response->content_type('text/plain'); - $c->stash->{'plain'}->{'data'} = "does not exist\n"; + $c->stash->{plain}->{data} = "does not exist\n"; $c->forward('Hydra::View::Plain'); } $c->stash->{storePath} = $path; - $c->stash->{current_view} = 'NARInfo'; + $c->forward('Hydra::View::NARInfo'); }