import: github: Fix incorrect no-release case.

This is a followup to 81c3dc3224.

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.
This commit is contained in:
Ludovic Courtès 2019-09-08 14:29:27 +02:00
parent 2bb2971883
commit 982a94e97e
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -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))