guix-commits
[Top][All Lists]
Advanced

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

03/06: kconfig: Mostly preserve keys ordering of original defconfig.


From: guix-commits
Subject: 03/06: kconfig: Mostly preserve keys ordering of original defconfig.
Date: Tue, 20 Dec 2022 21:32:37 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit 1d448662802309b0cb4886afefe8a91c2315ffa0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Dec 20 16:35:37 2022 -0500

    kconfig: Mostly preserve keys ordering of original defconfig.
    
    * guix/build/kconfig.scm (defconfig->alist): Reverse the results of lists
    constructed with cons.
---
 guix/build/kconfig.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/build/kconfig.scm b/guix/build/kconfig.scm
index 192bc17c21..7c1f128ffd 100644
--- a/guix/build/kconfig.scm
+++ b/guix/build/kconfig.scm
@@ -102,10 +102,10 @@ An error is thrown for invalid configurations.
                   ;; The search for duplicates is done.
                   ;; Return the alist or throw an error on duplicates.
                   (if (null? duplicates)
-                      alist
+                      (reverse alist)
                       (error
                        (format #f "duplicate configurations in ~a" defconfig)
-                       duplicates))
+                       (reverse duplicates)))
                   ;; Continue the search for duplicates.
                   (loop (cdr keys)
                         (if (member (first keys) (cdr keys))



reply via email to

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