me
/
guix
Archived
1
0
Fork 0

system: Fix duplicate nss-certs check.

* gnu/system.scm (operating-system-packages): Because packages->manifest
allows other formats, don't assume it's a package object in the list.

Fixes: https://issues.guix.gnu.org/70624
Change-Id: I91c64ca2c463ef5c35fa23856e4622e364e58988
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
master
nathan 2024-04-26 19:12:42 -04:00 committed by Maxim Cournoyer
parent 37f76ab50a
commit c85a7e1b2b
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 3 additions and 1 deletions

View File

@ -325,7 +325,9 @@ VERSION is the target version of the boot-parameters record."
;; field contains a duplicated nss-certs packages. ;; field contains a duplicated nss-certs packages.
(let* ((packages (%operating-system-packages os)) (let* ((packages (%operating-system-packages os))
(nss-certs-packages (sort (filter (lambda (p) (nss-certs-packages (sort (filter (lambda (p)
(string=? "nss-certs" (package-name p))) (and (package? p)
(string=? "nss-certs"
(package-name p))))
packages) packages)
(lambda (x y) (lambda (x y)
;; Sort from newer to older versions. ;; Sort from newer to older versions.