diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2011-03-19 13:41:58 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2011-03-19 13:41:58 +0000 |
commit | 8c1bf95d4ac285706c1e5fbbbe256bf70ae1078c (patch) | |
tree | 0342bd6ca790867ca70f726a7534c87bb2c824b8 | |
parent | 1fe76de12fd72a99c2aa3d6c7069a3d20d013431 (diff) | |
download | mgamirrors-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.pm | 4 |
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, } |