guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/07: import: github: Fix incorrect no-release case.


From: guix-commits
Subject: 06/07: import: github: Fix incorrect no-release case.
Date: Sun, 8 Sep 2019 08:44:01 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 982a94e97eff85b053558fac7c0442726a091f11
Author: Ludovic Courtès <address@hidden>
Date:   Sun Sep 8 14:29:27 2019 +0200

    import: github: Fix incorrect no-release case.
    
    This is a followup to 81c3dc32244a17241d74eea9fa265edfcb326f6d.
    
    Since that commit, when /releases returned an empty JSON array, we would
    not fall back to /tags because of the incorrect match.
    
    * guix/import/github.scm (fetch-releases-or-tags): Match the empty
    vector instead of the empty list.
---
 guix/import/github.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/github.scm b/guix/import/github.scm
index 55e1f72..55ea00a 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -161,7 +161,7 @@ empty list."
         url))
 
   (match (json-fetch (decorate release-url) #:headers headers)
-    (()
+    (#()
      ;; We got the empty list, presumably because the user didn't use GitHub's
      ;; "release" mechanism, but hopefully they did use Git tags.
      (json-fetch (decorate tag-url) #:headers headers))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]