diff options
author | 2020-04-28 13:23:18 +0200 | |
---|---|---|
committer | 2020-04-28 13:23:18 +0200 | |
commit | 12797334a6b3d9e7276770aba56e2f8ac4cced3d (patch) | |
tree | 82ca01d1c7943c8d50c4d7cfea973481ac24ffe1 | |
parent | Fix the name of the scripts for experimental and releases (diff) | |
download | gentoo-mirrorstats-12797334a6b3d9e7276770aba56e2f8ac4cced3d.tar.gz gentoo-mirrorstats-12797334a6b3d9e7276770aba56e2f8ac4cced3d.tar.bz2 gentoo-mirrorstats-12797334a6b3d9e7276770aba56e2f8ac4cced3d.zip |
Fix get-mirror script for releases and experimental
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rwxr-xr-x | experimental_mirrors/get-mirror-list-experimental.rb | 6 | ||||
-rwxr-xr-x | releases_mirrors/get-mirror-list-releases.rb | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/experimental_mirrors/get-mirror-list-experimental.rb b/experimental_mirrors/get-mirror-list-experimental.rb index 0794df3..3e4bae4 100755 --- a/experimental_mirrors/get-mirror-list-experimental.rb +++ b/experimental_mirrors/get-mirror-list-experimental.rb @@ -11,7 +11,11 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el| country = el.attributes['country'] el.each_element('mirror/uri/') do |mirror| - puts "#{country.downcase} #{mirror[0].to_s}" + if mirror[0].to_s.end_with?("/") + puts "#{country.downcase} #{mirror[0].to_s}experimental/" + else + puts "#{country.downcase} #{mirror[0].to_s}/experimental/" + end end } diff --git a/releases_mirrors/get-mirror-list-releases.rb b/releases_mirrors/get-mirror-list-releases.rb index 0794df3..bb6b14c 100755 --- a/releases_mirrors/get-mirror-list-releases.rb +++ b/releases_mirrors/get-mirror-list-releases.rb @@ -11,7 +11,11 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el| country = el.attributes['country'] el.each_element('mirror/uri/') do |mirror| - puts "#{country.downcase} #{mirror[0].to_s}" + if mirror[0].to_s.end_with?("/") + puts "#{country.downcase} #{mirror[0].to_s}releases/" + else + puts "#{country.downcase} #{mirror[0].to_s}/releases/" + end end } |