This patches mirrorselect to do the following: 1. Keep user's local mirrors in GENTOO_MIRRORS (example: GENTOO_MIRRORS="/mnt/cdrom http://....) 2. Do not alter /etc/make.conf; instead using /etc/._cfg????.make_conf 3. Do not remove commented out GENTOO_MIRRORS I haven't testing when using RSYNC instead of GENTOO_MIRRORS. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1 i686) ================================================================= System uname: 2.6.8.1 i686 AMD Duron(tm) processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache clean distlocks sandbox titles userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/part6/portage-tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts cdparanoia cdr crypt cups directfb doc encode esd f77 flac foomaticdb gdbm gif gstreamer gtk2 imlib jack joystick jpeg kde lcms libg++ libwww mad maildir mailwrapper mikmod mmx mono mpeg ncurses nls oggvorbis oss pam pdflib perl png python qt quicktime readline ruby ruby18 sdl slang spell sse ssl svg svga tcpd tiff truetype x86 xml2 xprint xrandr xv zlib video_cards_savage linguas_fr"
Created attachment 42471 [details, diff] Patch against mirrorselect-0.86
Sample output: % mirrorselect -a -s5 Downloading a list of mirrors... Netselect is currently unable to handle ipv6, stripping known ipv6 hosts... Removing IPV6 Only Servers... Running netselect to determine mirrors, this might take a moment... Found 5 Mirrors: ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://gentoo.mirrors.pair.com/ Including 2 Local Mirrors: /mnt/auto/cdr /mnt/auto/cdrw Writing new make.conf to /etc/._cfg0001_make.conf Please use etc-update to finish installing your new mirrors! % etc-update Showing differences between /etc/make.conf and /etc/._cfg0001_make.conf --- /etc/make.conf 2004-11-06 12:47:16.289414768 -0500 +++ /etc/._cfg0001_make.conf 2004-11-06 12:50:12.959556824 -0500 @@ -167,7 +167,7 @@ # to a nearby mirror by merging and using the 'mirrorselect' tool. #GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp:/ /mirrors.tds.net/gentoo" #GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw http://gentoo.mirrors.pair.com/ f tp://gentoo.mirrors.pair.com/ ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg. iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo" -GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw http://gentoo.mirrors.pair.com/ ft p://gentoo.mirrors.pair.com/ ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg.i u.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo" +GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw ftp://ftp.ussg.iu.edu/pub/linux/ge ntoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mi rrors.tds.net/gentoo ftp://gentoo.mirrors.pair.com/" # # Portage uses PORTAGE_BINHOST to specify mirrors for prebuilt-binary packages. # The list is a single extry specifying the full address of the directory
I'm a little unclear what you are trying request, but I think the functionality you are looking for can be achieved with /etc/portage/mirrors. There is documentation for this in the portage man page. If I misunderstood you, feel free to re-open this bug.