From 4044e857b65d28888cc4902c35954f79d5033fa0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Mar 2009 16:44:41 +0000 Subject: [PATCH] --- src/Hydra/lib/Hydra/Controller/Root.pm | 2 ++ src/Hydra/lib/Hydra/View/NixExprs.pm | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Hydra/lib/Hydra/Controller/Root.pm b/src/Hydra/lib/Hydra/Controller/Root.pm index e652a08c..c098c8a1 100644 --- a/src/Hydra/lib/Hydra/Controller/Root.pm +++ b/src/Hydra/lib/Hydra/Controller/Root.pm @@ -532,6 +532,8 @@ sub job :Local { sub nix : Chained('/') PathPart('channel/latest') CaptureArgs(0) { my ($self, $c) = @_; + $c->stash->{channelName} = "hydra-all-latest"; + my @builds = getLatestBuilds($c, $c->model('DB::Builds')); # !!! this includes failed builds my @storePaths = (); diff --git a/src/Hydra/lib/Hydra/View/NixExprs.pm b/src/Hydra/lib/Hydra/View/NixExprs.pm index 07755f52..6d3ebc60 100644 --- a/src/Hydra/lib/Hydra/View/NixExprs.pm +++ b/src/Hydra/lib/Hydra/View/NixExprs.pm @@ -42,6 +42,7 @@ sub process { $res .= "]\n"; my $tar = Archive::Tar->new; + $tar->add_data("channel/channel-name", ($c->stash->{channelName} or "unnamed-channel"), {mtime => 0}); $tar->add_data("channel/default.nix", $res, {mtime => 0}); my $tardata = $tar->write;