Restore api/get-info

[?]
Oct 29, 2013, 6:53 PM
5T44WFEZKEBPUJGREW7YTCELZF4HNGD3WGLTHGOOUFG36O5TJ6PAC

Dependencies

  • [2] LZVO64YG Merge in the first bits of the API work
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] GJFYEU3S * Nix now stores logs by default as bzip2, make sure the build page uncompresses before showing.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 496
    [5.644]
    [2.6020]
    sub get_info : Chained('buildChain') PathPart('api/get-info') Args(0) {
    my ($self, $c) = @_;
    my $build = $c->stash->{build};
    $c->stash->{json}->{buildId} = $build->id;
    $c->stash->{json}->{drvPath} = $build->drvpath;
    my $out = getMainOutput($build);
    $c->stash->{json}->{outPath} = $out->path if defined $out;
    $c->forward('View::JSON');
    }