From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: The Nixpkgs Monitor Date: Sat, 25 Jan 2014 22:44:17 +0100 Message-ID: <87k3dnspn2.fsf@gnu.org> References: <87r48awug8.fsf@gnu.org> <20140118120256.GA7593@debian> <87bnz9s3pp.fsf@gnu.org> <20140123195449.GD13401@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B6V-00049x-4A for guix-devel@gnu.org; Sat, 25 Jan 2014 16:49:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7B6P-00027Y-Ig for guix-devel@gnu.org; Sat, 25 Jan 2014 16:49:27 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:44116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7B6P-00027O-BI for guix-devel@gnu.org; Sat, 25 Jan 2014 16:49:21 -0500 In-Reply-To: <20140123195449.GD13401@debian> (Andreas Enge's message of "Thu, 23 Jan 2014 20:54:49 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > On Sat, Jan 18, 2014 at 04:35:14PM +0100, Ludovic Court=C3=A8s wrote: >> And what do we do for URIs in http:// or mirror://? > > What is the particular problem? For ffmpeg, for instance, the uri reads > (uri (string-append "http://www.ffmpeg.org/releases/ffmpeg-" > version ".tar.bz2")) > which gets expanded into "http://www.ffmpeg.org/releases/ffmpeg-2.1.1.tar= .bz2". > > One could try the following: > - Remove potentially trailing ".bz2" (to remove digits). > - Look for a regular expression "([:digits:].)*["digits:]". > If there is only one, this is likely to be the version; try "++" everyw= here > (in a way that would give "2.1.2", "2.2.0", "3.0.0" in our case, and ma= ybe > the same ones without the trailing ".0"); replace them in the string and > check whether they exist. Well indeed, that sounds like a workable plan. We should try it. Thanks, Ludo=E2=80=99.