summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'experimental_mirrors/get-mirror-list-experimental.rb')
-rwxr-xr-xexperimental_mirrors/get-mirror-list-experimental.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/experimental_mirrors/get-mirror-list-experimental.rb b/experimental_mirrors/get-mirror-list-experimental.rb
deleted file mode 100755
index 0794df3..0000000
--- a/experimental_mirrors/get-mirror-list-experimental.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/ruby
-
-MIRROR_DATA="https://api.gentoo.org/mirrors/distfiles.xml"
-
-%w[ rexml/document open-uri ].each {|lib| require lib }
-
-m = URI.parse(MIRROR_DATA).read
-x = REXML::Document.new(m)
-
-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}"
- end
-
-}
-