On 11/30/2012 09:55 PM, Alec Warner wrote:
> On Fri, Nov 30, 2012 at 10:06 AM, Ian Stakenvicius <a...@gentoo.org> wrote:
> On 30/11/12 12:30 PM, Alec Warner wrote:
>>>>> How about we not change the docs until someone eagerly implements
>>>>> all the stuff you just said?
>>>>
> 
> Well, using emerge-webrsync for grabbing the initial snapshot during
> an installation still makes sense regardless of whether or not we do
> any of the above, iirc that was the original documentation request
> change wasn't it?
> 
>> Zac can probably comment on where it fetches from. I can say with some
>> certainty that we have enough rsync capacity, I can't say the same for
>> HTTP based services.

I just did a quick test on 107 http mirrors returned from mirrorselect
--list-only, and found that 102 returned a mirror://snapshots/index.html
containing the string "portage-2012".
-- 
Thanks,
Zac
>From a4126418bf102f70249092cab9fa294be5b27635 Mon Sep 17 00:00:00 2001
From: Zac Medico <zmed...@gentoo.org>
Date: Fri, 30 Nov 2012 23:28:30 -0800
Subject: [PATCH] Add mirrorselect --list-only option

---
 mirrorselect/main.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/mirrorselect/main.py b/mirrorselect/main.py
index 55c1cb0..02f15ae 100755
--- a/mirrorselect/main.py
+++ b/mirrorselect/main.py
@@ -260,6 +260,9 @@ class MirrorSelect(object):
 
 		group = parser.add_option_group("Other options")
 		group.add_option(
+			"--list-only", action="store_true", default=False,
+			help="Output the list of available candidate host urls and then quit.")
+		group.add_option(
 			"-o", "--output", action="store_true", default=False,
 			help="Output Only Mode, this is especially useful "
 			"when being used during installation, to redirect "
@@ -319,7 +322,7 @@ class MirrorSelect(object):
 				'You do not appear to have netselect on your system. '
 				'You must use the -D flag')
 
-		if (os.getuid() != 0) and not options.output:
+		if (os.getuid() != 0) and not (options.output or options.list_only):
 			self.output.print_err('Must be root to write to %s!\n' % config_path)
 
 		if args:
@@ -393,6 +396,10 @@ class MirrorSelect(object):
 		fsmirrors = self.get_filesystem_mirrors(config_path, options.rsync)
 
 		hosts = self.get_available_hosts(options)
+		if options.list_only:
+			sys.stdout.write("".join("%s\n" % url[0] for url in hosts))
+			sys.stdout.flush()
+			return
 
 		urls = self.select_urls(hosts, options)
 
-- 
1.8.0

http://archive.mmu.edu.my/gentoo/snapshots/
http://cesium.di.uminho.pt/pub/gentoo/snapshots/
http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/snapshots/
http://darkstar.ist.utl.pt/gentoo/snapshots/
http://de-mirror.org/gentoo/snapshots/
http://distfiles.gentoo.bg/snapshots/
http://files.gentoo.gr/snapshots/
http://ftp.cc.uoc.gr/mirrors/linux/gentoo/snapshots/
http://ftp.daum.net/gentoo/snapshots/
http://ftp.dei.uc.pt/pub/linux/gentoo/snapshots/
http://ftp.df.lth.se/pub/gentoo/snapshots/
http://ftp.fi.muni.cz/pub/linux/gentoo/snapshots/
http://ftp.gentoo.bg/snapshots/
http://ftp.halifax.rwth-aachen.de/gentoo/snapshots/
http://ftp.heanet.ie/pub/gentoo/snapshots/
http://ftp.iij.ad.jp/pub/linux/gentoo/snapshots/
http://ftp.jaist.ac.jp/pub/Linux/Gentoo/snapshots/
http://ftp.kaist.ac.kr/pub/gentoo/snapshots/
http://ftp.klid.dk/ftp/gentoo/snapshots/
http://ftp.lecl.net/pub/gentoo/snapshots/
http://ftp.linux.org.tr/gentoo/snapshots/
http://ftp.ntua.gr/pub/linux/gentoo/snapshots/
http://ftp.rhnet.is/pub/gentoo/snapshots/
http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/snapshots/
http://ftp.romnet.org/gentoo/snapshots/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/snapshots/
http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/snapshots/
http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/snapshots/
http://ftp.swin.edu.au/gentoo/snapshots/
http://ftp.twaren.net/Linux/Gentoo/snapshots/
http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/snapshots/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo/snapshots/
http://ftp.vectranet.pl/gentoo/snapshots/
http://gd.tuwien.ac.at/opsys/linux/gentoo/snapshots/
http://gentoo.aditsu.net:8000/snapshots/
http://gentoo.arcticnetwork.ca/snapshots/
http://gentoo.bloodhost.ru/snapshots/
http://gentoo.c3sl.ufpr.br/snapshots/
http://gentoo.channelx.biz/snapshots/
http://gentoo.cites.uiuc.edu/pub/gentoo/snapshots/
http://gentoo.cs.nctu.edu.tw/gentoo/snapshots/
http://gentoo.cs.uni.edu/snapshots/
http://gentoo-euetib.upc.es/mirror/gentoo/snapshots/
http://gentoo.gg3.net/snapshots/
http://gentoo.gossamerhost.com/snapshots/
http://gentoo.inf.elte.hu/snapshots/
http://gentoo.inode.at/snapshots/
http://gentoo.in.th/snapshots/
http://gentoo.iteam.net.ua/snapshots/
http://gentoo.kems.net/snapshots/
http://gentoo.kiev.ua/ftp/snapshots/
http://gentoo.lagis.at/snapshots/
http://gentoo.llarian.net/snapshots/
http://gentoo.localhost.net.ar/snapshots/
http://gentoo.mirror.dkm.cz/pub/gentoo/snapshots/
http://gentoo.mirror.pw.edu.pl/snapshots/
http://gentoo.mirrors.easynews.com/linux/gentoo/snapshots/
http://gentoo.mirrors.hoobly.com/snapshots/
http://gentoo.mirrors.pair.com/snapshots/
http://gentoo.mirrors.tds.net/gentoo/snapshots/
http://gentoo.mirrors.tera-byte.com/snapshots/
http://gentoo.mirror.web4u.cz/snapshots/
http://gentoo.mneisen.org/snapshots/
http://gentoo.modulix.net/gentoo/snapshots/
http://gentoo.netnitco.net/snapshots/
http://gentoo.osuosl.org/snapshots/
http://gentoo.po.opole.pl/snapshots/
http://gentoo.prz.rzeszow.pl/snapshots/
http://gentoo.supp.name/snapshots/
http://gentoo.tiscali.nl/snapshots/
http://gentoo.tups.lv/source/snapshots/
http://gentoo.wheel.sk/snapshots/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/snapshots/
http://lug.mtu.edu/gentoo/snapshots/
http://mirror2.corbina.ru/gentoo-distfiles/snapshots/
http://mirror.bytemark.co.uk/gentoo/snapshots/
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/snapshots/
http://mirror.datapipe.net/gentoo/snapshots/
http://mirror.iawnet.sandia.gov/gentoo/snapshots/
http://mirror.isoc.org.il/pub/gentoo/snapshots/
http://mirror.leaseweb.com/gentoo/snapshots/
http://mirror.lug.udel.edu/pub/gentoo/snapshots/
http://mirror.mcs.anl.gov/pub/gentoo/snapshots/
http://mirror.mdfnet.se/gentoo/snapshots/
http://mirror.neolabs.kz/gentoo/pub/snapshots/
http://mirror.netcologne.de/gentoo/snapshots/
http://mirror.opteamax.de/gentoo/snapshots/
http://mirror.ovh.net/gentoo-distfiles/snapshots/
http://mirror.qubenet.net/mirror/gentoo/snapshots/
http://mirrors.163.com/gentoo/snapshots/
http://mirrors.linuxant.fr/distfiles.gentoo.org/snapshots/
http://mirrors.rit.edu/gentoo/snapshots/
http://mirrors.sohu.com/gentoo/snapshots/
http://mirrors.stuhome.net/gentoo/snapshots/
http://mirrors.telepoint.bg/gentoo/snapshots/
http://mirror.switch.ch/ftp/mirror/gentoo/snapshots/
http://mirrors.xmu.edu.cn/gentoo/snapshots/
http://mirrors.xservers.ro/gentoo/snapshots/
http://mirror.the-best-hosting.net/snapshots/
http://mirror.usu.edu/mirrors/gentoo/snapshots/
http://mirror.yandex.ru/gentoo-distfiles/snapshots/
http://portage.org.ua/snapshots/
http://trumpetti.atm.tut.fi/gentoo/snapshots/
http://tux.rainside.sk/gentoo/snapshots/
http://www.gtlib.gatech.edu/pub/gentoo/snapshots/
http://www.las.ic.unicamp.br/pub/gentoo/snapshots/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/snapshots/

Reply via email to