diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-07-21 17:30:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-07-21 17:50:44 +0200 |
commit | e5c00059560c6280aff3dac3c9c3a8b5477832ef (patch) | |
tree | 31bff04152812e58a5005afea7dddf15db33168f | |
parent | fa3d9c4db4407cebf9bdb2e251595bd25193c95e (diff) | |
download | guix-e5c00059560c6280aff3dac3c9c3a8b5477832ef.tar guix-e5c00059560c6280aff3dac3c9c3a8b5477832ef.tar.gz |
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.
-rw-r--r-- | guix/lint.scm | 3 |
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." |