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:
		
							parent
							
								
									2bb2971883
								
							
						
					
					
						commit
						982a94e97e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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)) | ||||
|  |  | |||
		Reference in a new issue