guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/07: lint: source: Always return a list.


From: guix-commits
Subject: 03/07: lint: source: Always return a list.
Date: Tue, 21 Jul 2020 12:43:13 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit e5c00059560c6280aff3dac3c9c3a8b5477832ef
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Jul 21 17:30:23 2020 +0200

    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.
---
 guix/lint.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/lint.scm b/guix/lint.scm
index a550caa..e785567 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]