Fix a bug where the list of 0 licenses wasn't handled correctly
This happened for a package with #f as the licenses. That's incorrect, but try to handle it without erroring.
This commit is contained in:
parent
28baed2667
commit
8f956aa6c2
1 changed files with 7 additions and 4 deletions
|
|
@ -37,10 +37,13 @@ FROM license_sets")
|
||||||
(exec-query->vhash conn
|
(exec-query->vhash conn
|
||||||
select-license-sets
|
select-license-sets
|
||||||
(lambda (results)
|
(lambda (results)
|
||||||
(string-split (string-drop-right
|
(if (string=? (second results) "{}")
|
||||||
|
'()
|
||||||
|
(string-split
|
||||||
|
(string-drop-right
|
||||||
(string-drop (second results) 1)
|
(string-drop (second results) 1)
|
||||||
1)
|
1)
|
||||||
#\,))
|
#\,)))
|
||||||
first)) ;; id
|
first)) ;; id
|
||||||
(missing-license-sets
|
(missing-license-sets
|
||||||
(delete-duplicates
|
(delete-duplicates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue