From abba2e62b42b208e854f297b72444165f3f93f89 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Feb 2009 21:33:29 +0000 Subject: [PATCH] --- src/Hydra/lib/Hydra/Base/Controller/Nix.pm | 2 ++ src/Hydra/lib/Hydra/View/NixPkg.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Hydra/lib/Hydra/Base/Controller/Nix.pm b/src/Hydra/lib/Hydra/Base/Controller/Nix.pm index d930b361..5de9d5bf 100644 --- a/src/Hydra/lib/Hydra/Base/Controller/Nix.pm +++ b/src/Hydra/lib/Hydra/Base/Controller/Nix.pm @@ -49,6 +49,8 @@ sub pkg : Chained('nix') PathPart Args(1) { $c->stash->{build} = $pkg; + $c->stash->{manifestUri} = $c->uri_for($self->action_for("manifest"), $c->req->captures); + $c->stash->{current_view} = 'Hydra::View::NixPkg'; $c->response->content_type('application/nix-package'); diff --git a/src/Hydra/lib/Hydra/View/NixPkg.pm b/src/Hydra/lib/Hydra/View/NixPkg.pm index 010c6df8..108ff12b 100644 --- a/src/Hydra/lib/Hydra/View/NixPkg.pm +++ b/src/Hydra/lib/Hydra/View/NixPkg.pm @@ -10,7 +10,7 @@ sub process { my $build = $c->stash->{build}; - my $s = "NIXPKG1 " . $c->uri_for("manifest", $build->id) + my $s = "NIXPKG1 " . $c->stash->{manifestUri} . " " . $build->nixname . " " . $build->system . " " . $build->drvpath . " " . $build->outpath;