From bc76f8b1f9a74c0f187022991b633cc1820944c7 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Mon, 27 Jul 2020 13:33:39 +0200 Subject: upstream: Handle the case where the file name has no extension. Fixes . Reported by Alexandru-Sergiu Marton . * guix/upstream.scm (package-update/url-fetch): Handle the case where the file name has no extension. --- guix/upstream.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/upstream.scm b/guix/upstream.scm index ca184601b2..6584d5e4c4 100644 --- a/guix/upstream.scm +++ b/guix/upstream.scm @@ -369,7 +369,7 @@ SOURCE, an ." (let*-values (((archive-type) (match (and=> (package-source package) origin-uri) ((? string? uri) - (let ((type (file-extension (basename uri)))) + (let ((type (or (file-extension (basename uri)) ""))) ;; Sometimes we have URLs such as ;; "https://github.com/…/tarball/v0.1", in which case ;; we must not consider "1" as the extension. -- cgit v1.2.3