Make negative narinfo responses much smaller
[?]
Apr 23, 2013, 1:33 PM
HAI5TY47TDWH3KGW6JPMZ3AB4EHJUFLUK7KZCLBOX6INVDQGG56QCDependencies
- [2]
UD2WKDUVUse queryPathFromHashPart to look up binary cache requests efficiently - [3]
XE6HD7BPProvide the nix-cache-info file required by the binary cache substituter - [4]
LSZLZHJYAllow users to edit their own settings - [5]
MVB7RRLT* Move NARs from the NixChannel controller to the Root controller and - [6]
SZYDW2DGhydra: added some user admin - [7]
AFEKITYDFix some warnings about undefined values - [8]
IDT3SO3PGenerate *.narinfo files on the fly to support the binary cache substituter - [*]
J5UVLXOK* Start of a basic Catalyst web interface.
Change contents
- replacement in src/lib/Hydra/Controller/Root.pm at line 218
sub hashToPath {my ($c, $hash) = @_;sub narinfo :LocalRegex('^([a-z0-9]+).narinfo$') :Args(0) {my ($self, $c) = @_;my $hash = $c->req->captures->[0]; - edit in src/lib/Hydra/Controller/Root.pm at line 224
notFound($c, "Store path with hash ‘$hash’ does not exist.") unless $path;return $path;} - replacement in src/lib/Hydra/Controller/Root.pm at line 225
sub narinfo :LocalRegex('^([a-z0-9]+).narinfo$') :Args(0) {my ($self, $c) = @_;my $hash = $c->req->captures->[0];$c->stash->{storePath} = hashToPath($c, $hash);if (!$path) {$c->response->content_type('text/plain');$c->stash->{'plain'}->{'data'} = "does not exist\n";$c->forward('Hydra::View::Plain');}$c->stash->{storePath} = $path;