From 8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 19 Mar 2011 13:41:58 +0000 Subject: - distribution name in database will be always lowercase --- lib/MGA/Mirrors/Controller/Api.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MGA/Mirrors/Controller/Api.pm b/lib/MGA/Mirrors/Controller/Api.pm index 6f85a80..9f87859 100644 --- a/lib/MGA/Mirrors/Controller/Api.pm +++ b/lib/MGA/Mirrors/Controller/Api.pm @@ -36,8 +36,8 @@ sub list :Path :Args(1) { my $list = $c->model('Mirrors')->find_distributions( { - version => $version, - arch => $arch, + version => lc($version), + arch => lc($arch), exists => 1, public => 1, } -- cgit v1.2.1