From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 286FB138247 for ; Tue, 7 Jan 2014 21:13:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85996E0A62; Tue, 7 Jan 2014 21:13:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81598E0A01 for ; Tue, 7 Jan 2014 21:13:01 +0000 (UTC) Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8D8B233F673 for ; Tue, 7 Jan 2014 21:13:00 +0000 (UTC) Received: (qmail 17190 invoked by uid 10000); 7 Jan 2014 21:12:59 -0000 Date: Tue, 7 Jan 2014 21:12:59 +0000 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Portage Feature Request: making thirdpartymirrors easier to manage Message-ID: References: <52CB1B6D.5090800@yahoo.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52CB1B6D.5090800@yahoo.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: cafc3a6b-127b-456b-9db4-14153e804788 X-Archives-Hash: 59c18350c7d3be80d2e45bd2e175c386 On Mon, Jan 06, 2014 at 04:09:01PM -0500, Alex Xu wrote: > > 1. New location: $PROFILEDIR/thirdpartymirrors/$MIRRORNAME > > 1.1. The name of the mirror is now the name of the file. > > 1.2. We can have a file extension of .mirrors if somebody would like > > that. > > 2. New format (for directory-mode): > > 2.1. Comments permitted, shell-style. > > 2.2. Blank lines ignored > > 2.3. One URL per line, optionally prefixed with "-" or "+" > > 2.4. For stack repos/overlays: > > 2.4.1. No prefix: replace all prior mirrors from masters with new URLS in this file. > > 2.4.2. "-" prefix: remove this URL from the list from masters. > > 2.4.2. "+" prefix: append this URL to the list from masters. > > So if *any* line doesn't have a prefix, then *everything* gets > overwritten? What about the prior mirrors listed in the file? > > There needs to be some mechanism for specifying this, but I don't think > this is it. > > Perhaps a header with a special line? Suggestions on the format then? Maybe we have two modes: 1. No prefix, always append 2. Prefix required, one of '+', '-', ' '. I was also asked by a user to make it possible to adjust the priority of some mirror URLs, instead of only random choice. -- Robin Hugh Johnson Gentoo Linux: Developer, Infrastructure Lead E-Mail : robbat2@gentoo.org GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85