Allow downloading file by filename
[?]
Jul 31, 2015, 3:50 PM
3TZGWQHOP4PQ5YSHETBXAHVQP5QNSPG7QREZCGQ4GF55DZSSHKZACDependencies
- [2]
LZVO64YGMerge in the first bits of the API work - [3]
MAOFG2TD* Allow omitting the product number if there is only one product in a - [4]
5NO7NCKT* Refactoring. - [5]
LBNVQXUB* Build the /build stuff in a separate controller. - [6]
D3DIBMOK* For products that are directories (like manuals), allow a default - [7]
NUIKDEHL* A quick hack to list the contents of various types of files (RPM, - [8]
XJFHFZCA* Provide some redirects to build products by type so that we can for
Change contents
- replacement in src/lib/Hydra/Controller/Build.pm at line 200
my ($self, $c, $productnr, @path) = @_;my ($self, $c, $productRef, @path) = @_; - replacement in src/lib/Hydra/Controller/Build.pm at line 202
$productnr = 1 if !defined $productnr;$productRef = 1 if !defined $productRef; - replacement in src/lib/Hydra/Controller/Build.pm at line 204
my $product = $c->stash->{build}->buildproducts->find({productnr => $productnr});notFound($c, "Build doesn't have a product #$productnr.") if !defined $product;my $product;if ($productRef =~ /^[0-9]+$/) {$product = $c->stash->{build}->buildproducts->find({productnr => $productRef});} else {$product = $c->stash->{build}->buildproducts->find({name => $productRef});@path = ($productRef, @path);}notFound($c, "Build doesn't have a product $productRef.") if !defined $product;