From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#22242: Help constructing source URL Date: Sat, 26 Dec 2015 08:46:38 +0100 Message-ID: <8760zl649t.fsf@elephly.net> References: <20151226070559.GA11537@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCjZC-0003bf-5F for bug-guix@gnu.org; Sat, 26 Dec 2015 02:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCjZ9-0005gC-0A for bug-guix@gnu.org; Sat, 26 Dec 2015 02:47:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCjZ8-0005g8-Sd for bug-guix@gnu.org; Sat, 26 Dec 2015 02:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aCjZ8-0007by-GA for bug-guix@gnu.org; Sat, 26 Dec 2015 02:47:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20151226070559.GA11537@jasmine> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Leo Famulari Cc: 22242@debbugs.gnu.org Leo Famulari writes: > Our tinyproxy package needs to be updated to use the current source URL. > > The current URL is: > https://download.banu.com/tinyproxy/1.8/tinyproxy-1.8.3.tar.gz > > I don't know how to abstract the "1.8" directory to account for other > versions. How about this: (string-append "https://download.banu.com/tinyproxy/" (version-major+minor version) "/tinyproxy-" version ".tar.gz") ~~ Ricardo