aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2011-03-19 13:41:58 +0000
committerOlivier Thauvin <nanardon@mageia.org>2011-03-19 13:41:58 +0000
commit8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c (patch)
tree0342bd6ca790867ca70f726a7534c87bb2c824b8
parent1fe76de12fd72a99c2aa3d6c7069a3d20d013431 (diff)
downloadmgamirrors-8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c.tar
mgamirrors-8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c.tar.gz
mgamirrors-8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c.tar.bz2
mgamirrors-8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c.tar.xz
mgamirrors-8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c.zip
- distribution name in database will be always lowercase
-rw-r--r--lib/MGA/Mirrors/Controller/Api.pm4
1 files 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,
}