lint: Avoid calls to 'package-field-location' with #f as the field.
authorLudovic Courtès <ludo@gnu.org>
Sun, 23 Aug 2020 20:11:31 +0000 (22:11 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 23 Aug 2020 21:05:16 +0000 (23:05 +0200)
* guix/lint.scm (%make-warning): Call 'package-field-location' only when
FIELD is true.

guix/lint.scm

index 71ce931..4a6abe4 100644 (file)
    message-text
    message-data
    (or location
-       (package-field-location package field)
+       (and field (package-field-location package field))
        (package-location package))))
 
 (define-syntax make-warning