summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-28 13:23:18 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-28 13:23:18 +0200
commit12797334a6b3d9e7276770aba56e2f8ac4cced3d (patch)
tree82ca01d1c7943c8d50c4d7cfea973481ac24ffe1
parentFix the name of the scripts for experimental and releases (diff)
downloadgentoo-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-xexperimental_mirrors/get-mirror-list-experimental.rb6
-rwxr-xr-xreleases_mirrors/get-mirror-list-releases.rb6
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
}