mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 21:49:34 -05:00
kconfig: Mostly preserve keys ordering of original defconfig.
* guix/build/kconfig.scm (defconfig->alist): Reverse the results of lists constructed with cons.
This commit is contained in:
parent
d368210af5
commit
1d44866280
1 changed files with 2 additions and 2 deletions
|
@ -102,10 +102,10 @@ (define (defconfig->alist defconfig)
|
|||
;; 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))
|
||||
|
|
Loading…
Reference in a new issue