From owner-freebsd-ports@FreeBSD.ORG Mon Mar 30 20:54:30 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 1078D106566C for ; Mon, 30 Mar 2009 20:54:30 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id 7094F8FC14 for ; Mon, 30 Mar 2009 20:54:29 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [192.168.1.100] (hood.oook.cz [195.250.137.134]) (authenticated bits=0) by raven.customer.vol.cz (8.14.3/8.14.3) with ESMTP id n2UKsK9g062117; Mon, 30 Mar 2009 22:54:22 +0200 (CEST) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Dominic Fandrey In-Reply-To: <49CE6B06.8080402@bsdforen.de> References: <49CE6B06.8080402@bsdforen.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-vx8mw4DAqBi1Pfe/AZJX" Date: Mon, 30 Mar 2009 22:54:19 +0200 Message-Id: <1238446459.17527.4.camel@hood.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 195.250.137.134; Sender-helo: [192.168.1.100]; ) Cc: freebsd-ports@FreeBSD.org Subject: Re: LATEST_LINK not in index X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 20:54:30 -0000 --=-vx8mw4DAqBi1Pfe/AZJX Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable Dominic Fandrey p=ED=B9e v so 28. 03. 2009 v 19:23 +0100: > 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. >=20 > 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: >=20 > # pkg_upgrade firefox3 > # >=20 > # pkg_upgrade firefox > www/firefox;firefox-2.0.0.20_4,1 > www/firefox3;firefox-3.0.7,1 > # >=20 > 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? Upgrades are easy. Look up @comment ORIGIN line in +CONTENTS file of the port being upgraded, then look up this value in second column of INDEX file. --=20 Pav Lucistnik It's now using GIFs instead of JPEGs. This is similar to replacing triangular wheels with round ones. --=-vx8mw4DAqBi1Pfe/AZJX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?= =?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAknRMXQACgkQntdYP8FOsoJBHQCfYe6fDe5VDw7OC7w53hXu1Bzv q4kAoJHU0aPLbqWqmcVecyOfVQVPzn6o =BRsA -----END PGP SIGNATURE----- --=-vx8mw4DAqBi1Pfe/AZJX--