From 76104accdafdfd2161836db212f330d5cae127e7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 3 Mar 2016 11:32:30 +0100 Subject: [PATCH] Return unique store paths --- src/lib/Hydra/Controller/JobsetEval.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/JobsetEval.pm b/src/lib/Hydra/Controller/JobsetEval.pm index eaba6ae2..e61b8cac 100644 --- a/src/lib/Hydra/Controller/JobsetEval.pm +++ b/src/lib/Hydra/Controller/JobsetEval.pm @@ -5,6 +5,7 @@ use warnings; use base 'Hydra::Base::Controller::NixChannel'; use Hydra::Helper::Nix; use Hydra::Helper::CatalystUtils; +use List::MoreUtils qw(uniq); sub evalChain : Chained('/') PathPart('eval') CaptureArgs(1) { @@ -257,7 +258,7 @@ sub store_paths : Chained('evalChain') PathPart('store-paths') Args(0) { $self->status_ok( $c, - entity => [sort map {$_->get_column('outpath')} @builds] + entity => [uniq(sort map {$_->get_column('outpath')} @builds)] ); }