me
/
guix
Archived
1
0
Fork 0

kconfig: Mostly preserve keys ordering of original defconfig.

* guix/build/kconfig.scm (defconfig->alist): Reverse the results of lists
constructed with cons.
Maxim Cournoyer 2022-12-20 16:35:37 -05:00
parent d368210af5
commit 1d44866280
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 2 additions and 2 deletions

View File

@ -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))