Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F1F5C9FB399 for ; Mon, 9 Apr 2007 19:54:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 65120-03 for ; Mon, 9 Apr 2007 19:54:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id E4B069FB20E for ; Mon, 9 Apr 2007 19:54:50 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-221-161.bk12-dsl.surnet.cl [201.221.221.161]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l39MsotX010692; Mon, 9 Apr 2007 15:54:50 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0A844329F4; Mon, 9 Apr 2007 18:54:45 -0400 (CLT) Date: Mon, 9 Apr 2007 18:54:45 -0400 From: Alvaro Herrera To: Andrew Hammond Cc: CAJ CAJ , pgsql-general@postgresql.org Subject: Re: programmatic way to fetch latest release for a given major.minor version Message-ID: <20070409225445.GO10785@alvh.no-ip.org> Mail-Followup-To: Andrew Hammond , CAJ CAJ , pgsql-general@postgresql.org References: <1176155240.221125.319880@y80g2000hsf.googlegroups.com> <467669b30704091526v79ae044boe7217cc0777dce1f@mail.gmail.com> <5a0a9d6f0704091534i4e4af90co2dad0e9e0b60efee@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5a0a9d6f0704091534i4e4af90co2dad0e9e0b60efee@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Mon, 09 Apr 2007 15:54:51 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/407 X-Sequence-Number: 112310 Andrew Hammond escribió: > On 4/9/07, CAJ CAJ wrote: > >On 9 Apr 2007 14:47:20 -0700, Andrew Hammond > > wrote: > >> I'm writing a script that wants to know the latest release for a given > >> major.minor version. Is there some better way than parsing > >> http://www.postgresql.org/ftp/source/ or trying to > >connect to ftp > >> (which is invariably timing out on me today. Is that box getting > >> hammered or something?) and doing the parsing that? Both approaches > >> feel quite awkward to me. > > > >Use wget to download via HTTP (added recently). Probably wise to add a > >couple mirrors in your script. > > I'm not asking how to download stuff. I'm asking how to figure out the > current release number for a given major.minor. I thought that was > clear in my original post, but I guess not. For example, how do I > determine (programmatically) the lastest version of 8.1. Maybe get configure.in from CVS: cvs log configure.in and parse the "symbolic names" list? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support