From f3f2c5683f469bc0770651d73d755f7caa6e7193 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 23 Mar 2011 13:03:40 +0000 Subject: [PATCH] Hydra/62 fix, broken nar download --- src/lib/Hydra/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index d8e80d0a..3865fd66 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -188,7 +188,7 @@ sub end : ActionClass('RenderView') { sub nar :Local :Args(1) { my ($self, $c, $path) = @_; - $path = ($ENV{NIX_STORE_DIR}."/$path" || "/nix/store/$path" ); + $path = ($ENV{NIX_STORE_DIR} || "/nix/store")."/$path"; if (!isValidPath($path)) { $c->response->status(410); # "Gone"