ListBuilds: Fix legacy channel URLs.

Regression introduced by 1fdc258de0.

The commit introduced a channel/custom PathPart which uses the new
custom channel expressions, but I forgot to remove CaptureArgs, so the
URL really is channel/latest/ignored-value.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: Peter Simons <simons@cryp.to>
This commit is contained in:
aszlig 2015-10-31 12:15:09 +01:00 committed by Eelco Dolstra
parent c087472c71
commit 20b412224e

View file

@ -32,8 +32,8 @@ sub all : Chained('get_builds') PathPart {
} }
sub nix : Chained('get_builds') PathPart('channel/latest') CaptureArgs(1) { sub nix : Chained('get_builds') PathPart('channel/latest') {
my ($self, $c, $channelName) = @_; my ($self, $c) = @_;
$c->stash->{channelName} = $c->stash->{channelBaseName} . "-latest"; $c->stash->{channelName} = $c->stash->{channelBaseName} . "-latest";
$c->stash->{channelBuilds} = $c->stash->{latestSucceeded} $c->stash->{channelBuilds} = $c->stash->{latestSucceeded}