forked from lix-project/hydra
* Make download-by-type more deterministic when there are multiple
files of the same type.
This commit is contained in:
parent
ee31b6e3df
commit
903ca3b246
|
@ -156,7 +156,7 @@ sub download_by_type : Chained('build') PathPart('download-by-type') {
|
|||
unless defined $type && defined $subtype;
|
||||
|
||||
(my $product) = $c->stash->{build}->buildproducts->search(
|
||||
{type => $type, subtype => $subtype});
|
||||
{type => $type, subtype => $subtype}, {order_by => "productnr"});
|
||||
notFound($c, "Build doesn't have a build product with type $type/$subtype.")
|
||||
if !defined $product;
|
||||
|
||||
|
|
Loading…
Reference in a new issue