Hydra/62 fix, broken nar download

This commit is contained in:
Rob Vermaas 2011-03-23 13:03:40 +00:00
parent 7b1d87fde9
commit f3f2c5683f

View file

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