summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/upstream.scm2
1 files changed, 1 insertions, 1 deletions
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 <upstream-source>."
      (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.