diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2011-03-19 13:37:31 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2011-03-19 13:37:31 +0000 |
commit | 1fe76de12fd72a99c2aa3d6c7069a3d20d013431 (patch) | |
tree | 344261d281555d83cf68a72eee436f02307554fc /lib/MGA/Mirrors | |
parent | 26956358c8eb3564ec8acaf4653969394a2d2a9d (diff) | |
download | mgamirrors-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.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 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( { |