Add a convenient way to get logs of a path/drv. Requested by phreedom.
[?]
Feb 19, 2014, 10:21 AM
WXV6M6XNOKHBGKDFUBKQ5FJTLO6PLZHXHJW44O6BVVIHER2FIQWACDependencies
- [2]
HRAFVVOEmake logo configurable via HYDRA_LOGO env var - [*]
J5UVLXOK* Start of a basic Catalyst web interface.
Change contents
- edit in src/lib/Hydra/Controller/Root.pm at line 351
sub log :Local :Args(1) {my ($self, $c, $path) = @_; - edit in src/lib/Hydra/Controller/Root.pm at line 355
$path = ($ENV{NIX_STORE_DIR} || "/nix/store")."/$path"; - edit in src/lib/Hydra/Controller/Root.pm at line 357[2.420][4.2638]
my @outpaths = ($path);my $logPath = findLog($c, $path, @outpaths);notFound($c, "The build log of $path is not available.") unless defined $logPath;$c->stash->{'plain'} = { data => (scalar logContents($logPath)) || " " };$c->forward('Hydra::View::Plain');}