diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2015-12-16 14:29:38 +0100 |
---|---|---|
committer | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2015-12-21 15:24:54 +0100 |
commit | be036757bdd0819aa16ea386a7283d6bf315cad4 (patch) | |
tree | 8300b6435dcbb02087d91c0752de6419c253f9d5 | |
parent | 0cb5bc2cffbc176afa55a116730f81f5afc2dde5 (diff) | |
download | patches-be036757bdd0819aa16ea386a7283d6bf315cad4.tar patches-be036757bdd0819aa16ea386a7283d6bf315cad4.tar.gz |
import: Drop empty list items.
* guix/import/cran.scm (listify): Remove empty strings from result list.
-rw-r--r-- | guix/import/cran.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/guix/import/cran.scm b/guix/import/cran.scm index 845ecb5832..45c679cbe2 100644 --- a/guix/import/cran.scm +++ b/guix/import/cran.scm @@ -128,9 +128,12 @@ empty list when the FIELD cannot be found." #f "( *\\([^\\)]+\\)) *" value 'pre 'post) #\,))) - ;; When there is whitespace inside of items it is probably because - ;; this was not an actual list to begin with. - (remove (cut string-any char-set:whitespace <>) + (remove (lambda (item) + (or (string-null? item) + ;; When there is whitespace inside of items it is + ;; probably because this was not an actual list to + ;; begin with. + (string-any char-set:whitespace item))) (map string-trim-both items)))))) (define (beautify-description description) |