commit: 2360bf2e7540d90c2fff6a10b1b7aae8ad98b394
Author: Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 28 11:46:05 2020 +0000
Commit: Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Tue Apr 28 11:46:05 2020 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=2360bf2e
Fix the url for releases and experimental mirrors
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, 2 insertions(+), 10 deletions(-)
diff --git a/experimental_mirrors/get-mirror-list-experimental.rb
b/experimental_mirrors/get-mirror-list-experimental.rb
index 3e4bae4..0794df3 100755
--- a/experimental_mirrors/get-mirror-list-experimental.rb
+++ b/experimental_mirrors/get-mirror-list-experimental.rb
@@ -11,11 +11,7 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el|
country = el.attributes['country']
el.each_element('mirror/uri/') do |mirror|
- 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
+ puts "#{country.downcase} #{mirror[0].to_s}"
end
}
diff --git a/releases_mirrors/get-mirror-list-releases.rb
b/releases_mirrors/get-mirror-list-releases.rb
index bb6b14c..0794df3 100755
--- a/releases_mirrors/get-mirror-list-releases.rb
+++ b/releases_mirrors/get-mirror-list-releases.rb
@@ -11,11 +11,7 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el|
country = el.attributes['country']
el.each_element('mirror/uri/') do |mirror|
- 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
+ puts "#{country.downcase} #{mirror[0].to_s}"
end
}