From owner-freebsd-ports@FreeBSD.ORG Mon Nov 8 21:58:05 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0703D1065694 for ; Mon, 8 Nov 2010 21:58:05 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.server1.bsdforen.de (bsdforen.de [82.193.243.81]) by mx1.freebsd.org (Postfix) with ESMTP id B96798FC2C for ; Mon, 8 Nov 2010 21:58:04 +0000 (UTC) Received: from mobileKamikaze.norad (HSI-KBW-078-042-098-160.hsi3.kabel-badenwuerttemberg.de [78.42.98.160]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.server1.bsdforen.de (Postfix) with ESMTPSA id B2EC37E8CB; Mon, 8 Nov 2010 22:58:02 +0100 (CET) Message-ID: <4CD8726A.3000309@bsdforen.de> Date: Mon, 08 Nov 2010 22:58:02 +0100 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.15) Gecko/20101028 Thunderbird/3.0.10 MIME-Version: 1.0 To: Torfinn Ingolfsen References: <4CD16FCA.9000700@bsdforen.de> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Ports ML Subject: Re: /pub or not /pub X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 21:58:05 -0000 On 08/11/2010 22:39, Torfinn Ingolfsen wrote: > On Wed, Nov 3, 2010 at 3:20 PM, Dominic Fandrey wrote: >> It has come to my attention that a lot of FTP mirrors have their >> FreeBSD data under /FreeBSD instead of /pub/FreeBSD. >> >> Which version is recommended and used to create PACKAGESITE from >> PACKAGEROOT? > IMHO, if a site claim to be a mirror, they should follow the structure of > the original site. For FreeBSD ftp mirrors, that means /pub/FreeBSD etc. > If they provide a /FreeBSD that one should be a link to /pub/FreeBSD and so > on. Thanks a lot for this input! I think ~half the German mirrors offer /FreeBSD instead of /pub/FreeBSD, which really messes up my code that generates PACKAGESITE_MIRRORS from PACKAGEROOT_MIRRORS for pkg_upgrade. This is of course not limited to German mirrors. At one point I actually thought there was an official policy change involved and I started changing my code, until I recognized that there are still mirrors around that use the /pub/FreeBSD layout. It would be simple to insert layout probing code, but it would result in an annoying delay for every single call of the program. Especially in small use cases, when it's completely irrelevant that a couple of mirrors don't work. Regards, Dominic -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?