guix-commits
[Top][All Lists]
Advanced

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

14/112: import/utils: Fix conditional.


From: guix-commits
Subject: 14/112: import/utils: Fix conditional.
Date: Wed, 9 Dec 2020 16:06:29 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 6c148eaae7ed0688e1e42b092f02ba8a4a870edf
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Dec 9 19:49:00 2020 +0100

    import/utils: Fix conditional.
    
    This is a follow-up to commit 45584061a9ebe961e2be08ee94c3fe8ad74e2713.
    
    * guix/import/utils.scm (package->definition): Use EQ? instead of = to 
compare
    truthiness; use ELSE instead of (#T).
---
 guix/import/utils.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/import/utils.scm b/guix/import/utils.scm
index 7de9534..e227c2e 100644
--- a/guix/import/utils.scm
+++ b/guix/import/utils.scm
@@ -275,9 +275,9 @@ version. If APPEND-VERSION?/string is a string, append this 
string."
                        (cond
                         ((string? append-version?/string)
                          (string-append name "-" append-version?/string))
-                        ((= append-version?/string #t)
+                        ((eq? append-version?/string #t)
                          (string-append name "-" (version-major+minor 
version)))
-                        ((#t) version)))
+                        (else name)))
         ,guix-package))))
 
 (define (build-system-modules)



reply via email to

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