Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 222033 Details for
Bug 307683
audit thirdpartymirrors for the gentoo mirrors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
get-mirror-list-source.rb
get-mirror-list-source.rb (text/plain), 372 bytes, created by
Jeremy Olexa (darkside) (RETIRED)
on 2010-03-04 14:25:15 UTC
(
hide
)
Description:
get-mirror-list-source.rb
Filename:
MIME Type:
Creator:
Jeremy Olexa (darkside) (RETIRED)
Created:
2010-03-04 14:25:15 UTC
Size:
372 bytes
patch
obsolete
>#!/usr/bin/ruby > >%w[ rexml/document net/http ].each {|lib| require lib } > >m = Net::HTTP.get('www.gentoo.org', '/main/en/mirrors3.xml?passthru=1') >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 > >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 307683
:
222033
|
222035