diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-12-20 16:35:37 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-12-20 21:19:30 -0500 |
commit | 1d448662802309b0cb4886afefe8a91c2315ffa0 (patch) | |
tree | cde41a88ae8b0e4aff37a939bbee1d9e14740661 /guix/build | |
parent | d368210af5760d81fcb9964d3cd88c590c36407f (diff) |
kconfig: Mostly preserve keys ordering of original defconfig.
* guix/build/kconfig.scm (defconfig->alist): Reverse the results of lists
constructed with cons.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/kconfig.scm | 4 |
1 files 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)) |