mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 16:12:58 -05:00
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:
parent
fa3d9c4db4
commit
e5c0005956
1 changed files with 2 additions and 1 deletions
|
@ -818,7 +818,8 @@ (define (warnings-for-uris uris)
|
||||||
(warnings-for-uris
|
(warnings-for-uris
|
||||||
(list (string->uri (git-reference-url (origin-uri origin))))))
|
(list (string->uri (git-reference-url (origin-uri origin))))))
|
||||||
(else
|
(else
|
||||||
'())))))
|
'()))
|
||||||
|
'())))
|
||||||
|
|
||||||
(define (check-source-file-name package)
|
(define (check-source-file-name package)
|
||||||
"Emit a warning if PACKAGE's origin has no meaningful file name."
|
"Emit a warning if PACKAGE's origin has no meaningful file name."
|
||||||
|
|
Loading…
Reference in a new issue