aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MGA/Mirrors
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mageia.org>2011-03-19 13:37:31 +0000
committerOlivier Thauvin <nanardon@mageia.org>2011-03-19 13:37:31 +0000
commit1fe76de12fd72a99c2aa3d6c7069a3d20d013431 (patch)
tree344261d281555d83cf68a72eee436f02307554fc /lib/MGA/Mirrors
parent26956358c8eb3564ec8acaf4653969394a2d2a9d (diff)
downloadmgamirrors-1fe76de12fd72a99c2aa3d6c7069a3d20d013431.tar
mgamirrors-1fe76de12fd72a99c2aa3d6c7069a3d20d013431.tar.gz
mgamirrors-1fe76de12fd72a99c2aa3d6c7069a3d20d013431.tar.bz2
mgamirrors-1fe76de12fd72a99c2aa3d6c7069a3d20d013431.tar.xz
mgamirrors-1fe76de12fd72a99c2aa3d6c7069a3d20d013431.zip
- first keywords in mirror list is the type, not the product
Diffstat (limited to 'lib/MGA/Mirrors')
-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 91846dc..6f85a80 100644
--- a/lib/MGA/Mirrors/Controller/Api.pm
+++ b/lib/MGA/Mirrors/Controller/Api.pm
@@ -30,9 +30,9 @@ sub index :Path :Args(0) {
sub list :Path :Args(1) {
my ( $self, $c, $arg ) = @_;
- my ($product, $version, $arch) = $arg =~ m/^([^\.]+)\.(.+)\.([^\.]+)\.list$/;
+ my ($type, $version, $arch) = $arg =~ m/^([^\.]+)\.(.+)\.([^\.]+)\.list$/;
- $c->log->debug("$product, $version, $arch");
+ $c->log->debug("$type, $version, $arch");
my $list = $c->model('Mirrors')->find_distributions(
{