commit: 12797334a6b3d9e7276770aba56e2f8ac4cced3d
Author: Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 28 11:23:18 2020 +0000
Commit: Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Tue Apr 28 11:23:18 2020 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=12797334
Fix get-mirror script for releases and experimental
Signed-off-by: Max Magorsch <arzano <AT> gentoo.org>
experimental_mirrors/get-mirror-list-experimental.rb | 6 +++++-
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
}