From owner-freebsd-ports@FreeBSD.ORG Sat Mar 28 18:23:07 2009 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 3AF8F106564A for ; Sat, 28 Mar 2009 18:23:07 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id F17EA8FC20 for ; Sat, 28 Mar 2009 18:23:06 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (unknown [88.130.204.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 74B938A00D1 for ; Sat, 28 Mar 2009 19:23:05 +0100 (CET) Message-ID: <49CE6B06.8080402@bsdforen.de> Date: Sat, 28 Mar 2009 19:23:02 +0100 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: freebsd-ports@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: LATEST_LINK not in index 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: Sat, 28 Mar 2009 18:23:07 -0000 I'm working on a binary package upgrade tool that gets all required information from the INDEX file downloadable from the package repositories. This means you do not need a local copy of the ports tree to use it. The only information required and missing is the LATEST_LINK. Normally this is easily done by stripping the package name of the version, but some ports define a proprietary LATEST_LINK to avoid conflicts. This leads to the following problem, my program has to do some guessing and in these cases it fails: # pkg_upgrade firefox3 # # pkg_upgrade firefox www/firefox;firefox-2.0.0.20_4,1 www/firefox3;firefox-3.0.7,1 # It either matches none or more than one port. I could build some guessing logic, but the real solution would be to have the LATEST_LINK name in the index file. Is there any chance a LATEST_LINK column will be added if I file a PR?