This commit is contained in:
Eelco Dolstra 2009-03-03 16:44:41 +00:00
parent e9b3c89c68
commit 4044e857b6
2 changed files with 3 additions and 0 deletions

View file

@ -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 = ();

View file

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