summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-07-21 17:30:23 +0200
committerLudovic Courtès <ludo@gnu.org>2020-07-21 17:50:44 +0200
commite5c00059560c6280aff3dac3c9c3a8b5477832ef (patch)
tree31bff04152812e58a5005afea7dddf15db33168f /guix
parentfa3d9c4db4407cebf9bdb2e251595bd25193c95e (diff)
lint: source: Always return a list.
Fixes a regression introduced in c10526672e515f07c92dc447bbc592808f67238e. Previously we would return *unspecified* for a package whose source is not an origin. * guix/lint.scm (check-source): Add alternate 'if' branch.
Diffstat (limited to 'guix')
-rw-r--r--guix/lint.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/lint.scm b/guix/lint.scm
index a550caa237..e7855678ca 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -818,7 +818,8 @@ descriptions maintained upstream."
(warnings-for-uris
(list (string->uri (git-reference-url (origin-uri origin))))))
(else
- '())))))
+ '()))
+ '())))
(define (check-source-file-name package)
"Emit a warning if PACKAGE's origin has no meaningful file name."