diff options
author | nathan <nathan_mail@nborghese.com> | 2024-04-26 19:12:42 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-04-28 09:53:46 -0400 |
commit | c85a7e1b2bea99783990b11baa7dbac1c448ce06 (patch) | |
tree | b99998b4635982a42d0cdb75aeb22dc564ebb89f | |
parent | 37f76ab50a9709a0fb214de4731d8d75cf9430a3 (diff) | |
download | guix-c85a7e1b2bea99783990b11baa7dbac1c448ce06.tar.gz guix-c85a7e1b2bea99783990b11baa7dbac1c448ce06.zip |
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>
-rw-r--r-- | gnu/system.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index 025834328c..cb6e719ca6 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -325,7 +325,9 @@ VERSION is the target version of the boot-parameters record." ;; field contains a duplicated nss-certs packages. (let* ((packages (%operating-system-packages os)) (nss-certs-packages (sort (filter (lambda (p) - (string=? "nss-certs" (package-name p))) + (and (package? p) + (string=? "nss-certs" + (package-name p)))) packages) (lambda (x y) ;; Sort from newer to older versions. |