lint: source: Always return a list.

Fixes a regression introduced in
c10526672e.

Previously we would return *unspecified* for a package whose source is
not an origin.

* guix/lint.scm (check-source): Add alternate 'if' branch.
This commit is contained in:
Ludovic Courtès 2020-07-21 17:30:23 +02:00
parent fa3d9c4db4
commit e5c0005956
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -818,7 +818,8 @@ (define (warnings-for-uris uris)
(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."