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
parent
37f76ab50a
commit
c85a7e1b2b
|
@ -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.
|
||||||
|
|
Reference in New Issue