From owner-freebsd-questions@FreeBSD.ORG Fri Mar 3 21:05:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A5116A420 for ; Fri, 3 Mar 2006 21:05:20 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id EADE843D45 for ; Fri, 3 Mar 2006 21:05:19 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id D4CE21A4DEA; Fri, 3 Mar 2006 13:05:19 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 550A751878; Fri, 3 Mar 2006 16:05:19 -0500 (EST) Date: Fri, 3 Mar 2006 16:05:19 -0500 From: Kris Kennaway To: "Webster, Andrew" Message-ID: <20060303210518.GA11879@xor.obsecurity.org> References: <9D61D69E3C1F7F459C5513AD830EE2195128FE@mtlex01.connectalk.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <9D61D69E3C1F7F459C5513AD830EE2195128FE@mtlex01.connectalk.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org, Kris Kennaway Subject: Re: pkg_fetch fetches from wrong place??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 21:05:20 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 03, 2006 at 01:17:46PM -0500, Webster, Andrew wrote: > > -----Original Message----- > > From: Kris Kennaway [mailto:kris@obsecurity.org] > > Sent: Friday, March 03, 2006 12:19 > > To: Webster, Andrew > > Cc: freebsd-questions@freebsd.org > > Subject: Re: pkg_fetch fetches from wrong place??? > >=20 > > On Fri, Mar 03, 2006 at 09:46:20AM -0500, Webster, Andrew wrote: > > > I'm trying to figure out how pkg_fetch decides where to get packages > > > from. > >=20 > > Check the source code :-) >=20 > I'm no ruby expert, but the logic looks pretty dubious to me. > The decision to choose the latest is based on whether or not there is a > dash (-) in the filename. (Line 169 of pkg_fetch). > As a result, > Postgresql74-server sets latest to false. =20 > Postgresql74 sets latest to true, however there is no such thing as > postgresql74 in packages, it is either -client or -server, etc. > I think the author was intending to use the - to indicate the beginning > of a version number, but that logic is somewhat flawed given the package > naming conventions. Fair enough; please report the bug to the author :) Kris --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQFECK+OWry0BWjoQKURAlIpAJ9b0+eejnz7pj9M9aA2/PJojr6e5gCg6yD/ nfUbmv04yW7t632W8MfLhlc= =+l0D -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--