From 1fe76de12fd72a99c2aa3d6c7069a3d20d013431 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 19 Mar 2011 13:37:31 +0000 Subject: - first keywords in mirror list is the type, not the product --- 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 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( { -- cgit v1.2.1