From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] guix download: Support retrieving local file without the URI scheme. Date: Sun, 20 Aug 2017 14:44:01 +0200 Message-ID: <87o9ra4df2.fsf@fastmail.com> References: <20170820051517.31211-1-iyzsong@member.fsf.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djPaL-00066L-0m for guix-devel@gnu.org; Sun, 20 Aug 2017 08:44:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djPaH-0004Xm-Tz for guix-devel@gnu.org; Sun, 20 Aug 2017 08:44:09 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38543) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djPaH-0004XP-GY for guix-devel@gnu.org; Sun, 20 Aug 2017 08:44:05 -0400 In-Reply-To: <20170820051517.31211-1-iyzsong@member.fsf.org> 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" To: =?utf-8?B?5a6L5paH5q2m?= , guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > * guix/scripts/download.scm (guix-download): Treat the URL argument as a = local > file path when it fails on 'string->uri'. Call 'fetch' with the processed > 'uri' instead of the original URL argument. > * tests/guix-download.sh: Adjust accordingly. Yay! LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlmZhBEACgkQoqBt8qM6 VPoaWwf/S3pOUen7VXlCsMP6R6+t8kWzdeKloFpp42JtVbOM7E2mN1MCh8VTADO5 HdaIidGLpdDavt361b4jUOotL/1OPM89atGF4ilvDJac7T/l3RbBsHqSWhKDttPk 7nY7EVvMqsX49OsbLzW0plYPrRGpyJdunrIilwnWj9PUWPa2UPYsGpKyJs+IyV4u 7Kujh868YdVH9M9R5a90z+xZGXE6mtAFzJ28zp/RQMcoqIeqhHf+4KoMRGNMatFu OxTP1XwjWeyoYFLloHNGhdFnjLfLpv+swhEz9rhGnqteGN1/4qsYEQdWczwdbzJB oGt8aol2GbBKhGbBjLAQLkmemEyGHA== =pxCC -----END PGP SIGNATURE----- --=-=-=--