forked from lix-project/hydra
This commit is contained in:
parent
e9b3c89c68
commit
4044e857b6
|
@ -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 = ();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue