* [gentoo-commits] proj/gentoo-mirrorstats:master commit in: rsync_mirrors/, distfiles_mirrors/
@ 2015-04-14 11:40 Alex Legler
0 siblings, 0 replies; 2+ messages in thread
From: Alex Legler @ 2015-04-14 11:40 UTC (permalink / raw
To: gentoo-commits
commit: 1986f0f44c0ab818b5745bcf55063a1b0f44d791
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Tue Apr 14 11:39:50 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Tue Apr 14 11:39:50 2015 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=1986f0f4
Update mirror data URIs and fetch method
distfiles_mirrors/get-mirror-list-distfiles.rb | 6 ++++--
rsync_mirrors/get-mirror-list-rsync.rb | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/distfiles_mirrors/get-mirror-list-distfiles.rb b/distfiles_mirrors/get-mirror-list-distfiles.rb
index 1aa22ea..0794df3 100755
--- a/distfiles_mirrors/get-mirror-list-distfiles.rb
+++ b/distfiles_mirrors/get-mirror-list-distfiles.rb
@@ -1,8 +1,10 @@
#!/usr/bin/ruby
-%w[ rexml/document net/http ].each {|lib| require lib }
+MIRROR_DATA="https://api.gentoo.org/mirrors/distfiles.xml"
-m = Net::HTTP.get('www.gentoo.org', '/main/en/mirrors3.xml?passthru=1')
+%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|
diff --git a/rsync_mirrors/get-mirror-list-rsync.rb b/rsync_mirrors/get-mirror-list-rsync.rb
index 7269ece..252bfd2 100755
--- a/rsync_mirrors/get-mirror-list-rsync.rb
+++ b/rsync_mirrors/get-mirror-list-rsync.rb
@@ -1,8 +1,10 @@
#!/usr/bin/ruby
-%w[ rexml/document net/http ].each {|lib| require lib }
+MIRROR_DATA="https://api.gentoo.org/mirrors/rsync.xml"
-m = Net::HTTP.get('www.gentoo.org', '/main/en/mirrors-rsync-data.xml?passthru=1')
+%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|
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/gentoo-mirrorstats:master commit in: rsync_mirrors/, distfiles_mirrors/
@ 2020-04-28 7:43 Robin H. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Robin H. Johnson @ 2020-04-28 7:43 UTC (permalink / raw
To: gentoo-commits
commit: e5710f6af6a04401919a329e1d260ce9f2b8dcae
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 28 07:41:49 2020 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Apr 28 07:43:51 2020 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=e5710f6a
consistency in title
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
distfiles_mirrors/mirmon.conf | 2 +-
rsync_mirrors/mirmon.conf | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/distfiles_mirrors/mirmon.conf b/distfiles_mirrors/mirmon.conf
index e43d772..fa2ab1b 100644
--- a/distfiles_mirrors/mirmon.conf
+++ b/distfiles_mirrors/mirmon.conf
@@ -1,4 +1,4 @@
-project_name Gentoo Linux
+project_name Gentoo Linux (distfiles)
web_page /var/www/mirrorstats.gentoo.org/htdocs/distfiles/index-wip.html
icons ../icons
countries /var/www/mirrorstats.gentoo.org/mirmon/countries.list
diff --git a/rsync_mirrors/mirmon.conf b/rsync_mirrors/mirmon.conf
index 94887a9..d285f8d 100644
--- a/rsync_mirrors/mirmon.conf
+++ b/rsync_mirrors/mirmon.conf
@@ -1,4 +1,4 @@
-project_name Gentoo Linux
+project_name Gentoo Linux (rsync)
web_page /var/www/mirrorstats.gentoo.org/htdocs/rsync/index-wip.html
icons ../icons
countries /var/www/mirrorstats.gentoo.org/mirmon/countries.list
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-28 7:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 11:40 [gentoo-commits] proj/gentoo-mirrorstats:master commit in: rsync_mirrors/, distfiles_mirrors/ Alex Legler
-- strict thread matches above, loose matches on Subject: below --
2020-04-28 7:43 Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox