aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/model/derivation.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-03-24 10:55:17 +0000
committerChristopher Baines <mail@cbaines.net>2019-03-24 10:57:22 +0000
commitdaa2790f59c7353b3dcd0218f975684c7101acae (patch)
tree48692f5d0891a1e510ad051c838074819d248a96 /guix-data-service/model/derivation.scm
parent5be4ebca0c159d3029426c45d71f4f0b2b542a6c (diff)
downloaddata-service-daa2790f59c7353b3dcd0218f975684c7101acae.tar
data-service-daa2790f59c7353b3dcd0218f975684c7101acae.tar.gz
Differentiate filtering better for select-derivations-and-build-status
An empty list of derivation-file-names should result in no results, but in the case of the systems, targets and build-statuses, we want all of the results.
Diffstat (limited to 'guix-data-service/model/derivation.scm')
-rw-r--r--guix-data-service/model/derivation.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix-data-service/model/derivation.scm b/guix-data-service/model/derivation.scm
index 2469d0e..84801a9 100644
--- a/guix-data-service/model/derivation.scm
+++ b/guix-data-service/model/derivation.scm
@@ -478,7 +478,7 @@ ORDER BY derivations.system DESC,
(string-join
(filter-map
(lambda (field values)
- (if (and values (not (null? values)))
+ (if values
(string-append
field " IN ("
(string-join (map (lambda (value)